Skip to content

Commit aaa6083

Browse files
committed
Prefer compiler release flag to legacy compatibility flags
1 parent dde784c commit aaa6083

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_17
43-
targetCompatibility = JavaVersion.VERSION_17
41+
tasks.withType(JavaCompile).configureEach {
42+
options.release = 17
4443
}
4544

4645
group = 'cd.go'

0 commit comments

Comments
 (0)