File tree Expand file tree Collapse file tree 3 files changed +14
-19
lines changed Expand file tree Collapse file tree 3 files changed +14
-19
lines changed Original file line number Diff line number Diff line change 4444 - name : Compile libraries and tests
4545 run : ./gradlew clean testClasses
4646
47- - name : Build archives
48- run : ./gradlew assemble
49-
5047 - name : Set up JDK ${{ matrix.java }}
5148 uses : actions/setup-java@v3
5249 with :
5653 - name : Run tests against JDK17-compiled code
5754 run : ./gradlew test --exclude-task compileJava
5855
56+ - name : Archive HTML test report on failure
57+ if : ${{ failure() }}
58+ uses : actions/upload-artifact@v3
59+ with :
60+ name : test-reports-java17-java${{ matrix.java }}-${{ matrix.distribution }}-html
61+ path : " */build/reports/**"
62+
63+ - name : Build and test with JDK ${{ matrix.java }}
64+ run : ./gradlew clean test
65+
66+ - name : Build archives
67+ run : ./gradlew assemble
68+
5969 - name : Archive HTML test report
6070 if : ${{ always() }}
6171 uses : actions/upload-artifact@v3
7181 path : " */build/test-results/**/*.xml"
7282
7383 - name : Check binary reproducibility
84+ if : ${{ matrix.java != 8 }} # JDK 8 does not produce reproducible binaries
7485 run : |
7586 ./gradlew clean primaryPublishJar
7687 find . -name '*.jar' | xargs sha256sum | tee checksums.sha256sum
Original file line number Diff line number Diff line change @@ -2,13 +2,6 @@ plugins {
22 java
33}
44
5- java {
6- toolchain {
7- // Java 8 binaries are not reproducible
8- languageVersion.set(JavaLanguageVersion .of(11 ))
9- }
10- }
11-
125tasks.withType(JavaCompile ::class ) {
136 options.compilerArgs.add(" -Xlint:deprecation" )
147 options.compilerArgs.add(" -Xlint:unchecked" )
@@ -21,9 +14,3 @@ tasks.withType(JavaCompile::class) {
2114 sourceCompatibility = " 1.8"
2215 }
2316}
24-
25- tasks.withType(Test ::class ) {
26- javaLauncher.set(javaToolchains.launcherFor {
27- languageVersion.set(JavaLanguageVersion .of(8 ))
28- })
29- }
Original file line number Diff line number Diff line change @@ -8,7 +8,4 @@ tasks.withType(ScalaCompile::class) {
88 // See: https://github.com/gradle/gradle/pull/23198
99 // See: https://github.com/gradle/gradle/pull/23751
1010 scalaCompileOptions.additionalParameters = mutableListOf (" -Wunused" )
11- javaLauncher.set(javaToolchains.launcherFor {
12- languageVersion.set(JavaLanguageVersion .of(8 ))
13- })
1411}
You can’t perform that action at this time.
0 commit comments