Repository navigation
Conversation
…diffplug#3119) eclipse("4.19.0") wrapped in toggleOffOn() failed to store the Gradle configuration cache with "Failed to provision P2 dependencies" on Spotless 8.3.0: serializing the FenceStep serializes its nested Eclipse step, which provisioned from the archived 4.19 P2 update site. Embedded JDT lockfiles (8.10.0, diffplug#1996) route 4.9-4.41 through Maven, so this no longer reproduces. Lock that in for both Gradle serialization paths (roundtrip for the configuration cache, equality for fingerprinting), using a P2 provisioner that fails like the reporter's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MTr23yN6WXdCKzpsrh94vf
Pankraz76
marked this pull request as ready for review
November 23, 2026 19:04
This branch has not been deployed
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.
Adds a regression test for #3119.
What happened in #3119
The reporter's build (GTNH buildscript 2.0.29) pins Spotless 8.3.0. It configures
eclipse("4.19.0")together withtoggleOffOn(). When Gradle stores the configuration cache, it serializes theFenceStep, which serializes the Eclipse step nested inside it. On 8.3.0 that step resolved from the P2 update site for 4.19, which Eclipse has since moved to archive.eclipse.org. The serialization then failed withFailed to provision P2 dependencies.Since 8.10.0 (#1996), every supported JDT version ships an embedded lockfile and resolves from Maven, so this no longer reproduces on
main. GTNH buildscript 2.0.30 and later already pin Spotless 8.10.2.What this PR adds
EclipseJdtFencedConfigurationCacheTestbuilds the reported setup:eclipse("4.19.0"), which the builder normalizes to4.19, inside the defaultspotless:off/spotless:onfence. It uses aP2Provisionerthat fails the same way as in the report. It covers both Gradle serialization paths:Verification
v4.19.lockfileremoved (the behaviour before 8.10.0), both tests fail withjava.io.IOException: Failed to provision P2 dependencies, the same error as in the report.main. The lib-extra*EclipseJdt*and*EquoBasedStepBuilder*tests (30) and the testlib*FenceStep*and*ConfigurationCacheHackList*tests (8) also pass.:lib-extra:spotlessCheckpasses.CHANGES.md
There is no entry, because this PR only adds a test and changes nothing users can see. Happy to add one if you'd like.
Maintainer edits are allowed.
🤖 Generated with Claude Code
https://claude.ai/code/session_01MTr23yN6WXdCKzpsrh94vf