Skip to content

Commit

Permalink
Use CompileOptions#release property
Browse files Browse the repository at this point in the history
  • Loading branch information
tbroyer committed Nov 13, 2022
1 parent 9b05ab5 commit 02e81ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-logic/src/main/kotlin/local/java-library.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
java.sourceCompatibility = JavaVersion.VERSION_1_8
if (JavaVersion.current().isJava9Compatible) {
tasks.withType<JavaCompile>().configureEach {
options.compilerArgs.addAll(listOf("--release", java.targetCompatibility.majorVersion))
options.release.set(java.targetCompatibility.majorVersion.toInt())
}
}

Expand Down

0 comments on commit 02e81ee

Please sign in to comment.