File tree Expand file tree Collapse file tree 5 files changed +12
-28
lines changed
Expand file tree Collapse file tree 5 files changed +12
-28
lines changed Original file line number Diff line number Diff line change @@ -5,26 +5,14 @@ name: CI at GitHub
55on : [push]
66
77jobs :
8- Java8-Windows :
9- if : contains(toJson(github.event.commits), '[ci skip] ') == false
10- runs-on : windows-2022
11- steps :
12- - uses : actions/setup-java@v4
13- with :
14- distribution : ' zulu'
15- java-version : 8
16- - uses : actions/checkout@v5
17- - run : ./gradlew build install --console=plain --stacktrace
18- shell : bash
19-
20- Java11-Linux :
8+ Java17-Linux :
219 if : contains(toJson(github.event.commits), '[ci skip] ') == false
2210 runs-on : ubuntu-24.04
2311 steps :
2412 - uses : actions/setup-java@v4
2513 with :
2614 distribution : ' zulu'
27- java-version : 11
15+ java-version : 17
2816 - uses : actions/checkout@v5
2917 - uses : gradle/actions/wrapper-validation@v4
3018 - run : ./gradlew build install --console=plain --stacktrace
Original file line number Diff line number Diff line change @@ -21,24 +21,20 @@ java {
2121
2222tasks.withType<JavaCompile >().all { // Java compile-time options:
2323 options.compilerArgs.add(" -Xdiags:verbose" )
24- if (javaVersion.isCompatibleWith( JavaVersion . VERSION_14 )) {
25- // Suppress warnings that source value 7 is obsolete.
26- options.compilerArgs.add(" -Xlint:-options" )
27- }
24+
25+ // Suppress warnings that source value 7 is obsolete.
26+ options.compilerArgs.add(" -Xlint:-options" )
27+
2828 // options.compilerArgs.add("-Xlint:unchecked")
2929 options.setDeprecation(true ) // to provide detailed deprecation warnings
3030 options.encoding = " UTF-8"
31- if (javaVersion.isCompatibleWith(JavaVersion .VERSION_1_10 )) {
32- options.release = 7
33- }
31+
32+ options.release = 7
3433}
3534
3635tasks.withType<Javadoc >().all {
37- // Disable doclint for JDK8+.
38- if (javaVersion.isJava8Compatible()) {
39- (options as CoreJavadocOptions ).apply {
40- addStringOption(" Xdoclint:none" , " -quiet" )
41- }
36+ (options as CoreJavadocOptions ).apply {
37+ addStringOption(" Xdoclint:none" , " -quiet" )
4238 }
4339}
4440
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionUrl =https\://services.gradle.org/distributions/gradle-8.14.3 -bin.zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-9.0.0 -bin.zip
44networkTimeout =10000
55validateDistributionUrl =true
66zipStoreBase =GRADLE_USER_HOME
You can’t perform that action at this time.
0 commit comments