You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decouple build JDK from test JDK; upgrade shadow to 9.2.2
The CI matrix built the plugin fatjar and ran the TestKit tests with a
single JDK per row, pinning the whole build toolchain to the oldest JDK
under test (8). That blocked upgrading the shadow plugin, which now
requires Java 17+.
Split the two concerns:
- The plugin fatjar is always built with a fixed, modern JDK (17).
- The :plugin-test module compiles and runs on the JDK a given Gradle
version requires, selected via a Gradle toolchain (-PtestJavaVersion).
The matrix JDKs are already installed on the runner and exposed as
JAVA_HOME_<version>_X64; org.gradle.java.installations.fromEnv points
Gradle's toolchain detection at them (auto-detection does not scan the
runner tool cache on its own).
With the build no longer constrained to old JDKs, bump shadow 8.3.6 ->
9.2.2 (keeps the Gradle 8.14.4 wrapper; shadow 9.3+ would require Gradle
9). Shadow 9 exposes `configurations` as a SetProperty and provides
native auto-relocation, so the manual per-package relocation loop is
replaced with enableAutoRelocation + relocationPrefix, producing an
equivalent relocated fatjar.
Disable toolchain auto-download so a misconfigured testJavaVersion fails
fast instead of silently provisioning a JDK.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments