chore(publish): cut Maven Central file and release counts#50
Merged
Conversation
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.
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.
Maven Central's Central Portal enforces per-organisation monthly publishing limits (file count, release size, release count) as three-month rolling averages, with hard rate-limiting from 2026-08-11. We were publishing ~380 files per release and counting every RC tag as a full release, putting us over the file-count and release-count thresholds. Two independent levers:
File count — bump
vanniktech-maven-publish0.31.0 → 0.37.0. Its defaults publish onlymd5/sha1checksums and drop the redundant checksums-of-.asc-signatures andsha256/sha512(none of which Central reads). Cuts each artifact from 10 published files to 4 — ~380 → ~152 files per release. Also fixes the removedSonatypeHostAPI (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 overwritingX.Y.Z-SNAPSHOTto the separate, quota-exempt snapshot repository; a cleanX.Y.Ztag still releases. Turns a version that previously cost 3–4 counted releases into 1.Notes
.apichange; no CI change (publish job still fires on every tag — RC tags now publish a snapshot live, final tags stage a release for the usual manual "Publish").SonatypeHostrename.com.caplin.integration.datasourcexnamespace (already done).springboot-3.5.x(identical toolchain, clean cherry-pick).Verification
./gradlew classes— BUILD SUCCESSFUL (fixes the currentSonatypeHostCI compile failure)spotlessApplyclean3.1.0-rc2/3.1.0-RC1→3.1.0-SNAPSHOT,3.1.0→3.1.0,dev→dev