Use layout.buildDirectory (#326)

This switches Gradle scripts to use `layout.buildDirectory` instead
of hard-coded "build".
This commit is contained in:
Daniel Chao
2024-03-18 21:42:16 -07:00
committed by GitHub
parent 1f68cf0251
commit e4ccf517fa
11 changed files with 65 additions and 56 deletions

View File

@@ -55,7 +55,7 @@ val workAroundKotlinGradlePluginBug by tasks.registering {
// A problem was found with the configuration of task ':pkl-executor:compileJava' (type 'JavaCompile').
// > Directory '[...]/pkl/pkl-executor/build/classes/kotlin/main'
// specified for property 'compileKotlinOutputClasses' does not exist.
file("build/classes/kotlin/main").mkdirs()
layout.buildDirectory.dir("classes/kotlin/main").get().asFile.mkdirs()
}
}