Skip to content

Commit 83cb0cf

Browse files
committed
Prefer compiler release flag to legacy compatibility flags
1 parent 5dd49c3 commit 83cb0cf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ repositories {
2929
mavenCentral()
3030
}
3131

32-
java {
33-
sourceCompatibility = JavaVersion.VERSION_17
34-
targetCompatibility = JavaVersion.VERSION_17
32+
tasks.withType(JavaCompile).configureEach {
33+
options.release = 17
3534
}
3635

3736
ext {

0 commit comments

Comments
 (0)