Skip to content

Commit 6a2b997

Browse files
committed
Do not cache outputs of compile tasks on EA versions of Java
Since new versions often introduce new compiler warnings that need to be fixed.
1 parent cae4716 commit 6a2b997

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

buildSrc/src/main/kotlin/java-toolchain-conventions.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ project.pluginManager.withPlugin("java") {
1717
tasks.withType<JavaExec>().configureEach {
1818
javaLauncher.set(javaToolchainService.launcherFor(extension.toolchain))
1919
}
20+
tasks.withType<JavaCompile>().configureEach {
21+
outputs.cacheIf { javaLanguageVersion == defaultLanguageVersion }
22+
}
2023
}

0 commit comments

Comments
 (0)