From 56845583ec0421151595df5c8506b056b6abaa3a Mon Sep 17 00:00:00 2001 From: "Daniel A. A. Pelsmaeker" Date: Wed, 31 Jul 2024 17:19:47 +0200 Subject: [PATCH] Fix indentation --- .../resources/templates/build.gradle.kts.kte | 28 +++++++++---------- .../templates/settings.gradle.kts.kte | 10 +++---- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/repoman/src/main/resources/templates/build.gradle.kts.kte b/repoman/src/main/resources/templates/build.gradle.kts.kte index 3bcefe5..c1de171 100644 --- a/repoman/src/main/resources/templates/build.gradle.kts.kte +++ b/repoman/src/main/resources/templates/build.gradle.kts.kte @@ -21,17 +21,17 @@ rootProjectConvention { allprojects { apply(plugin = "org.metaborg.gitonium") -@if(meta.mainBranch != Defaults.MAIN_BRANCH || meta.releaseTagPrefix != Defaults.RELEASE_TAG_PREFIX) + @if(meta.mainBranch != Defaults.MAIN_BRANCH || meta.releaseTagPrefix != Defaults.RELEASE_TAG_PREFIX) // Configure Gitonium before setting the version gitonium { - @if(meta.mainBranch != Defaults.MAIN_BRANCH) + @if(meta.mainBranch != Defaults.MAIN_BRANCH) mainBranch.set("${meta.mainBranch}") - @endif - @if(meta.releaseTagPrefix != Defaults.RELEASE_TAG_PREFIX) + @endif + @if(meta.releaseTagPrefix != Defaults.RELEASE_TAG_PREFIX) tagPrefix.set("${meta.releaseTagPrefix}") - @endif + @endif } -@endif + @endif version = gitonium.version group = "${meta.mavenGroup}" @@ -43,20 +43,20 @@ allprojects { metadata { inceptionYear.set("${meta.inceptionYear}") -@if(meta.developers.isNotEmpty()) + @if(meta.developers.isNotEmpty()) developers.set(listOf( - @for(entry in meta.developers) + @for(entry in meta.developers) Person("${entry.name}", email = ${if (entry.email != null) "\"${entry.email}\"" else "null"}, id = ${if (entry.id != null) "\"${entry.id}\"" else "null"}), - @endfor + @endfor )) -@endif -@if(meta.contributors.isNotEmpty()) + @endif + @if(meta.contributors.isNotEmpty()) contributors.set(listOf( - @for(entry in meta.contributors) + @for(entry in meta.contributors) Person("${entry.name}", email = ${if (entry.email != null) "\"${entry.email}\"" else "null"}, id = ${if (entry.id != null) "\"${entry.id}\"" else "null"}), - @endfor + @endfor )) -@endif + @endif } } } diff --git a/repoman/src/main/resources/templates/settings.gradle.kts.kte b/repoman/src/main/resources/templates/settings.gradle.kts.kte index 35dec8c..cd4687b 100644 --- a/repoman/src/main/resources/templates/settings.gradle.kts.kte +++ b/repoman/src/main/resources/templates/settings.gradle.kts.kte @@ -24,15 +24,15 @@ rootProject.name = "${meta.files.gradleRootProject.rootProjectName}" @for(entry in meta.files.gradleRootProject.includedProjects) include(":${entry.name.trimStart(':')}") - @if(entry.path != null) +@if(entry.path != null) project(":${entry.name.trimStart(':')}").projectDir = file("${entry.path}") - @endif +@endif @endfor @for(entry in meta.files.gradleRootProject.includedBuilds) - @if(entry.name != null) +@if(entry.name != null) includeBuild("${entry.path}") { name = "${entry.name}" } - @else +@else includeBuild("${entry.path}") - @endif +@endif @endfor \ No newline at end of file