Fix pitest dependency resolution with stable runtime version#5143
Fix pitest dependency resolution with stable runtime version#5143vamsimanohar wants to merge 1 commit intomainfrom
Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughUpdates Pitest and JUnit5 plugin versions in the build configuration. Pitest plugin and task configuration versions are incremented from 1.19.0-rc.2 to 1.22.1, and JUnit5 plugin version is updated from 1.0.0 to 1.2.1. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The pitest RC runtime artifacts (pitest-command-line:1.19.0-rc.2) are not published to Maven Central, causing dependency resolution failures. Update pitestVersion to 1.22.1 (latest stable) and junit5PluginVersion to 1.2.1 while keeping the Gradle plugin at 1.19.0-rc.2 for Gradle 9 compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Vamsi Manohar <reddyvam@amazon.com>
d26c213 to
a949774
Compare
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
core/build.gradle (1)
29-29:⚠️ Potential issue | 🟡 MinorConsider upgrading gradle-pitest-plugin to 1.19.0-rc.3 and verify JUnit 5 plugin compatibility.
The versions are valid: pitest 1.22.1 (released Feb 2, 2026) and pitest-junit5-plugin 1.2.1 are both available on Maven Central. However:
gradle-pitest-plugin 1.19.0-rc.3 (Jan 19, 2026) is now available, newer than the 1.19.0-rc.2 in line 29. Consider upgrading if it doesn't require Gradle version changes.
The gradle-pitest-plugin maintainer notes that "in some cases there could be some issues when using non-default PIT versions." While pitest 1.22.1 is compatible in practice with the plugin, monitor for any runtime issues with mutation testing.
pitest-junit5-plugin 1.2.1 is compatible with pitest 1.22.1 (requires pitest ≥ 1.15.2), but ensure that the
junit-platform-launcherversion is aligned to avoid JUnit platform API mismatches.
Summary
1.19.0-rc.2is needed for Gradle 9 compatibility, but its matching RC runtime artifacts (org.pitest:pitest-command-line:1.19.0-rc.2) are not published to Maven Central, causingCould not find org.pitest:pitest-command-line:1.19.0-rc.2errors when running./gradlew :core:pitest.pitestVersion = '1.22.1'(latest stable release available on Maven Central) and updatingjunit5PluginVersionto1.2.1.mavenCentral()and completes mutation testing successfully (8279 mutations generated, 3750 killed, 74% test strength).Related GitHub issues
Test plan
./gradlew :core:pitestcompletes successfully (BUILD SUCCESSFUL in 5m 17s)🤖 Generated with Claude Code