Enable Gradle configuration cache (#1646)

Enable the configuration cache feature in Gradle, and adjust various
pieces of build logic that aren't configuration cache compatible.
This commit is contained in:
Daniel Chao
2026-06-05 11:05:19 -07:00
committed by GitHub
parent 74eae0388e
commit 87ec8ee730
20 changed files with 296 additions and 177 deletions
@@ -57,10 +57,11 @@ val generateTestConfigClasses by
classpath = pklCodegenKotlin
mainClass.set("org.pkl.codegen.kotlin.Main")
val codegenSources = fileTree("src/test/resources/codegenPkl")
argumentProviders.add(
CommandLineArgumentProvider {
listOf("--output-dir", outputDir.get().asFile.absolutePath) +
fileTree("src/test/resources/codegenPkl").map { it.absolutePath }
codegenSources.map { it.absolutePath }
}
)
}