File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 2323 # - windows-latest
2424 # - macos-latest
2525 java :
26- - 8
26+ - 11
2727 # - 17
2828 runs-on : ${{ matrix.os }}
2929 timeout-minutes : 20
Original file line number Diff line number Diff line change 2424 - windows-latest
2525 - macos-latest
2626 java :
27- - 8
27+ - 11
2828 - 17
2929 runs-on : ${{ matrix.os }}
3030 timeout-minutes : 20
Original file line number Diff line number Diff line change 2525 # - windows-latest
2626 # - macos-latest
2727 java :
28- - 8
28+ - 11
2929 # - 17
3030 runs-on : ${{ matrix.os }}
3131 timeout-minutes : 20
Original file line number Diff line number Diff line change @@ -128,7 +128,11 @@ dependencies {
128128
129129java {
130130 toolchain {
131- languageVersion.set(JavaLanguageVersion .of(8 ))
131+ // The org.openapi.generator requires JDK 11 to generate the sources.
132+ // Generated code still works with Java 8.
133+ // See below where we use Java 8 to perform checks
134+ // See https://github.com/OpenAPITools/openapi-generator/pull/15553 for details.
135+ languageVersion.set(JavaLanguageVersion .of(11 ))
132136 }
133137}
134138
@@ -138,6 +142,14 @@ tasks {
138142 }
139143 withType<Test > {
140144 useJUnitPlatform()
145+
146+ java {
147+ toolchain {
148+ // See above: the org.openapi.generator requires JDK 11 to generate the sources.
149+ // We're trying to ensure that the generated code still works with Java 8.
150+ languageVersion.set(JavaLanguageVersion .of(8 ))
151+ }
152+ }
141153 }
142154}
143155
You can’t perform that action at this time.
0 commit comments