Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed Jul 31, 2024
1 parent e3cbb8d commit 5684558
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
28 changes: 14 additions & 14 deletions repoman/src/main/resources/templates/build.gradle.kts.kte
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions repoman/src/main/resources/templates/settings.gradle.kts.kte
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5684558

Please sign in to comment.