File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ jobs:
244244 # Normal build plus ZIP distribution and merged javadoc
245245 ./gradlew -PuseCommitHashAsVersionName=true -PskipPrebuildLibraries=true \
246246 -x checkstyleMain -x checkstyleTest \
247- build createZipDistribution mergedJavadoc
247+ build mergedJavadoc
248248
249249 if [ "${{ matrix.deploy }}" = "true" ];
250250 then
Original file line number Diff line number Diff line change @@ -90,4 +90,15 @@ java {
9090 toolchain {
9191 languageVersion = JavaLanguageVersion . of(21 )
9292 }
93+ }
94+
95+ // Override global source/target and release for this module so Gradle
96+ // resolves JVM-21 variants (some platform artifacts require JVM 21+).
97+ java {
98+ sourceCompatibility = JavaVersion . VERSION_21
99+ targetCompatibility = JavaVersion . VERSION_21
100+ }
101+
102+ tasks. withType(JavaCompile ). configureEach {
103+ options. release = 21
93104}
You can’t perform that action at this time.
0 commit comments