Skip to content

Commit be4e8ff

Browse files
Fix pick of licenseHeaderFileName for private project (#35)
1 parent a7e2d30 commit be4e8ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gradle-modules/src/main/kotlin/org.sonarsource.cloud-native.code-style-conventions.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ val codeStyleConvention = extensions.create<CodeStyleConvention>("codeStyleConve
2525
codeStyleConvention.editorConfigPath.convention(layout.settingsDirectory.file("build-logic/common/.editorconfig"))
2626

2727
val kotlinGradleDelimiter = "(package|import|plugins|pluginManagement|dependencyResolutionManagement|repositories) "
28-
val licenseHeaderFileName = if (project.path.startsWith(":private:")) "private/LICENSE_HEADER_PRIVATE" else "LICENSE_HEADER"
28+
val licenseHeaderFileName = if (project.path.startsWith(":private")) "private/LICENSE_HEADER_PRIVATE" else "LICENSE_HEADER"
2929
val licenseHeaderFile = rootProject.file(licenseHeaderFileName)
3030

3131
spotless {

0 commit comments

Comments
 (0)