Skip to content

Commit a90b5b7

Browse files
committed
Prefer compiler release flag to legacy compatibility flags
1 parent b940235 commit a90b5b7

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
@@ -46,9 +46,8 @@ repositories {
4646
mavenLocal()
4747
}
4848

49-
java {
50-
sourceCompatibility = JavaVersion.VERSION_11
51-
targetCompatibility = JavaVersion.VERSION_11
49+
tasks.withType(JavaCompile).configureEach {
50+
options.release = 11
5251
}
5352

5453
ext {

0 commit comments

Comments
 (0)