File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,25 +5,14 @@ name: CI at GitHub
55on : [push]
66
77jobs :
8- Java8-Linux :
9- if : contains(toJson(github.event.commits), '[ci skip] ') == false
10- runs-on : ubuntu-22.04
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-
19- Java11-Linux :
8+ Java17-Linux :
209 if : contains(toJson(github.event.commits), '[ci skip] ') == false
2110 runs-on : ubuntu-24.04
2211 steps :
2312 - uses : actions/setup-java@v4
2413 with :
2514 distribution : ' zulu'
26- java-version : 11
15+ java-version : 17
2716 - uses : actions/checkout@v5
2817 - uses : gradle/actions/wrapper-validation@v4
2918 - run : ./gradlew build install --console=plain --stacktrace
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
Original file line number Diff line number Diff line change @@ -26,24 +26,20 @@ checkstyle {
2626
2727tasks.withType<JavaCompile >().all { // Java compile-time options:
2828 options.compilerArgs.add(" -Xdiags:verbose" )
29- if (javaVersion.isCompatibleWith( JavaVersion . VERSION_14 )) {
30- // Suppress warnings that source value 7 is obsolete.
31- options.compilerArgs.add(" -Xlint:-options" )
32- }
29+
30+ // Suppress warnings that source value 7 is obsolete:
31+ options.compilerArgs.add(" -Xlint:-options" )
32+
3333 options.compilerArgs.add(" -Xlint:unchecked" )
3434 options.setDeprecation(true ) // to provide detailed deprecation warnings
3535 options.encoding = " UTF-8"
36- if (javaVersion.isCompatibleWith(JavaVersion .VERSION_1_10 )) {
37- options.release = 8
38- }
36+ options.release = 8
3937}
4038
4139tasks.withType<Javadoc >().all {
42- // Disable doclint for JDK8+.
43- if (javaVersion.isJava8Compatible()) {
44- (options as CoreJavadocOptions ).apply {
45- addStringOption(" Xdoclint:none" , " -quiet" )
46- }
40+ // Disable doclint:
41+ (options as CoreJavadocOptions ).apply {
42+ addStringOption(" Xdoclint:none" , " -quiet" )
4743 }
4844}
4945
You can’t perform that action at this time.
0 commit comments