Skip to content

Fix dependency verification with a cold Gradle cache - #284

Merged
filiphr merged 2 commits into
mainfrom
fix-dependency-verification-cold-cache
Nov 12, 2026
Merged

filiphr merged 2 commits into
mainfrom
fix-dependency-verification-cold-cache

Conversation

@filiphr

@filiphr filiphr commented Nov 12, 2026

Copy link
Copy Markdown
Member

The 1.10.0 release failed in the Build step (run) because dependency verification rejected 11 metadata files on the build script classpath:

  • com.fasterxml:oss-parent:70
  • com.fasterxml.jackson:jackson-base:2.20.2 and 2.21.4
  • com.fasterxml.jackson:jackson-bom:2.20.2
  • com.fasterxml.jackson:jackson-parent:2.20
  • org.junit:junit-bom 5.10.0, 5.11.4, 5.13.1, 5.13.4 and 5.14.1

These are BOMs pulled in by the Gradle plugins that lose conflict resolution. Gradle only resolves their metadata when the cache is cold. CI passed because setup-gradle restored a warm cache. The release job did not have these files cached.

Changes

  • Add the missing entries to gradle/verification-metadata.xml. They were generated from a fresh Gradle home, and all 11 checksums match the files on Maven Central.
  • Add a Dependency verification (no cache) CI job that runs buildPlugin (the same build as the release job) with cache-disabled: true, so this kind of gap fails CI instead of the release.

Testing

  • Reproduced the failure locally with a fresh Gradle home (warm cache passes).
  • With the fix and a fresh Gradle home: buildPlugin, signPlugin and verifyPluginSignature pass with verification enforced (throwaway signing key).

The failed release stopped before anything was pushed, so it can be re-run once this is merged.

A cold Gradle cache resolves the metadata of the jackson and junit BOMs
that lose conflict resolution on the build script classpath. A warm cache
does not, which is why CI passed and the release failed.
The release job resolves dependencies without a warm cache, so CI needs
to do the same to catch missing verification metadata before a release.
@filiphr filiphr added this to the 1.10.0 milestone Nov 12, 2026
@filiphr
filiphr merged commit 574ab28 into main Nov 12, 2026
13 checks passed
@filiphr
filiphr deleted the fix-dependency-verification-cold-cache branch November 12, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant