Skip to content

Reduce published release size from ~25MB to ~9MB - #1880

Merged
max-leuthaeuser merged 2 commits into
masterfrom
max/reduce-release-size
Dec 1, 2026
Merged

max-leuthaeuser merged 2 commits into
masterfrom
max/reduce-release-size

Conversation

@max-leuthaeuser

Copy link
Copy Markdown
Contributor

Maven Central enforces monthly publishing limits (file count, release size, release count) per organization. Exceeding them and outliving the grace period blocked the last release (Publishing blocked: your organization has reached its monthly release size limit).

Each release was ~25MB, of which 16.2MB was the scaladoc jar of the generated domain-classes module.

Changes

  • domainClasses: publish a placeholder javadoc jar (a README) instead of the full scaladoc. Central requires a javadoc jar but does not inspect its contents. The -sources.jar is unchanged.
  • Don't publish -tests-sources.jar / -tests-javadoc.jar for any module: the -tests.jar itself is not published, so these are useless (packageDoc / publishArtifact := true leaked into the Test configuration).

Verified with sbt publishM2 (local, same version before/after)

before after
total size 25 MB 9 MB
files (excl. checksums/signatures) 30 20
domain-classes javadoc 16.2 MB 0.5 KB

The 'before' numbers match what is currently on Maven Central (e.g. 1.7.85).

Related: #1879 makes the release workflow manual-only.

- domain-classes: publish a placeholder javadoc jar instead of the ~16MB
  scaladoc of the generated sources (Central requires a javadoc jar but
  does not inspect its contents). The sources jar is still published.
- stop publishing the -tests-sources/-tests-javadoc jars, since the
  tests jar itself is not published.

Maven Central enforces monthly publishing limits per organization, and
exceeding them blocked the last release.

AI-Session-Id: 8da78e78-809b-421d-b8e3-d8d483cc8e7d
AI-Tool: claude-code
AI-Model: unknown
AI-Session-Id: 8da78e78-809b-421d-b8e3-d8d483cc8e7d
AI-Tool: claude-code
AI-Model: unknown
@max-leuthaeuser
max-leuthaeuser requested a review from ml86 December 1, 2026 09:36
@max-leuthaeuser
max-leuthaeuser merged commit 8ffe938 into master Dec 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.

2 participants