Skip to content

Commit 2237cf1

Browse files
committed
Fix layout.buildDirectory usage
1 parent 0ced324 commit 2237cf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api-model-v1-41/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ plugins {
1616

1717
val remoteApiVersion = "1.41"
1818

19-
logger.lifecycle("checking base: ${file("${layout.buildDirectory}/generated").path}")
19+
logger.lifecycle("checking base: ${file(layout.buildDirectory.dir("generated")).path}")
2020
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
2121
filter {
2222
// see https://github.com/JLLeitschuh/ktlint-gradle/issues/579
2323
exclude("**/generated/**")
2424
exclude {
25-
it.file.path.startsWith(file("${layout.buildDirectory}/generated").path)
25+
it.file.path.startsWith(file(layout.buildDirectory.dir("generated")).path)
2626
}
2727
}
2828
}

0 commit comments

Comments
 (0)