Skip to content

chore(publish): cut Maven Central file and release counts (3.5.x)#51

Merged
rossdanderson merged 1 commit into
springboot-3.5.xfrom
chore/reduce-maven-central-footprint-3.5
Jul 1, 2026
Merged

chore(publish): cut Maven Central file and release counts (3.5.x)#51
rossdanderson merged 1 commit into
springboot-3.5.xfrom
chore/reduce-maven-central-footprint-3.5

Conversation

@rossdanderson

Copy link
Copy Markdown
Collaborator

Backport of #50 to the springboot-3.5.x maintenance line. Clean cherry-pick — identical toolchain, same two edits.

File count — bump vanniktech-maven-publish 0.31.0 → 0.37.0. Its defaults publish only md5/sha1 checksums and drop the redundant checksums-of-.asc-signatures and sha256/sha512 (none of which Central reads). Cuts each artifact from 10 published files to 4 — ~380 → ~152 files per release. Also fixes the removed SonatypeHost API (publishToMavenCentral() no-arg).

Release count — derive the publish version from the git tag: a pre-release tag (X.Y.Z-rcN, case-insensitive) publishes an overwriting X.Y.Z-SNAPSHOT to the separate, quota-exempt snapshot repository; a clean X.Y.Z tag still releases. Turns a version that previously cost 3–4 counted releases into 1.

Verification

  • ./gradlew classes — BUILD SUCCESSFUL on this branch's toolchain (Kotlin 2.2.0, Dokka v2 2.2.0, Gradle 9.5.1)
  • No public .api change; no CI change

Upgrade vanniktech-maven-publish to 0.37.0, whose defaults publish only
md5/sha1 checksums and drop the redundant signature checksums and
sha256/sha512 (~380 -> ~152 files per release). Fix the removed
SonatypeHost API by calling publishToMavenCentral() with no argument.

Derive the publish version from the git tag so pre-release tags
(X.Y.Z-rcN) publish an overwriting X.Y.Z-SNAPSHOT to the separate,
quota-exempt snapshot repository instead of a full release; clean X.Y.Z
tags still release.
@rossdanderson rossdanderson merged commit ea553cf into springboot-3.5.x Jul 1, 2026
1 check passed
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