Migrate build to Gradle 9.4 + JDK25 compatibility tests - PoC#401
Draft
szpak wants to merge 9 commits into
Draft
Migrate build to Gradle 9.4 + JDK25 compatibility tests - PoC#401szpak wants to merge 9 commits into
szpak wants to merge 9 commits into
Conversation
- Remove Configuration.visible (deprecated 9.1, no effect since 9.0) - Use lazy DirectoryProperty.dir() instead of eager .asFile.get() for report dirs - Remove @CompileDynamic (no longer needed — Gradle <6.0 compat dropped in 1.19.0) - Replace deprecated afterSuite(Closure) with TestListener interface (deprecated 9.4) All changes are backward-compatible with Gradle 8.4+. Supersedes #397 (production code changes only).
- Add .get() on configurations.named() — Groovy 4 stricter Callable<Configuration> coercion - Make PitestTask abstract — Groovy 4 enforces abstract @Inject methods from JavaExec Both changes are backward-compatible with Groovy 3 (Gradle 8.x).
- Use named() directly instead of .get() + Callable wrapper (szpak review) - Conditionally set visible=false only for Gradle <9 (szpak review) - Remove unused Callable import
As it is used by default in functional tests.
- Filter PIT versions < 1.19.0 on JDK 25+ (ASM 9.7 doesn't support class file version 69) - Skip historyInputLocation test on JDK 25+ (PIT internal error) - Add JDK 25 → Gradle 9.4.1 entry to Java/Gradle compatibility map
e98624f to
9ac7bac
Compare
szpak
commented
Apr 7, 2026
| //TODO: Add plugin features once available - https://github.com/hcoles/pitest-plugins/issues/2 | ||
| } | ||
|
|
||
| @IgnoreIf({ Runtime.version().feature() >= 25 }) //PIT crashes with historyInputLocation on JDK 25+ (internal error) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Just to test changes in #399. We need to think over, if it doesn't break compatibility with Gradle <9 (8.4+ is still supported). JDK <17 has been no longer officially supported since 1.19.0(-rc.1), so now it's just a formal change (due to the dependencies).