Skip to content

Commit e66bfe8

Browse files
committed
Prefer compiler release flag to legacy compatibility flags
1 parent d860fcc commit e66bfe8

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
@@ -38,9 +38,8 @@ gocdPlugin {
3838
assetsToRelease = [project.tasks.jar]
3939
}
4040

41-
java {
42-
sourceCompatibility = JavaVersion.VERSION_11
43-
targetCompatibility = JavaVersion.VERSION_11
41+
tasks.withType(JavaCompile).configureEach {
42+
options.release = 11
4443
}
4544

4645
allprojects {

0 commit comments

Comments
 (0)