Repository navigation
build: make each Maven Central release 57% smaller - #367
Merged
Merged
Conversation
Trim the javadoc jar (no tree, index, search, help or deprecated list) and compile without local variable tables. A release drops from 17.0 MB to 14.5 MB. The change lives in build-extras.gradle, which Speakeasy never overwrites. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Maven Central accepts a placeholder javadoc jar. The jar now holds one index.html and a README.md that link to the README and docs/ at the release tag. A release drops from 14.5 MB to 7.3 MB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cbetta
marked this pull request as ready for review
December 4, 2026 15:20
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
An active moderate issue remains because sdkVersion is not declared as a javadoc input, allowing stale version-specific links and titles when building multiple SDK versions without cleaning.
1 open issue
What changed in this PR
Reduces Maven Central release size by replacing full Javadocs with lightweight placeholders and omitting local-variable debug metadata without changing the API.
Changes:
- Generates minimal documentation artifacts linking to repository and hosted docs.
- Retains source and line debug information while removing local-variable tables.
| File | Description |
|---|---|
| build-extras.gradle | Configures lightweight Javadocs and reduced Java compiler debug metadata for smaller releases. |
Review effort: Lite
The links and title use the SDK version, so make it a task input. Otherwise a version-only change could reuse the old placeholder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The Gradle task and Maven artifact changes require JDK 11 build verification to confirm correct Javadoc packaging and incrementality, but that runtime was unavailable.
No open issues 🎉
1 resolved since last review
Review effort: Lite
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.

Every merged regeneration releases
com.gr4vy:sdkto Maven Central, and in November the releases used up thecom.gr4vynamespace's monthly release-size limit (Sonatype ticket #131110). This makes each release 57% smaller without changing the API.Measured with
./gradlew buildon JDK 11, as the publish job builds it, at 2.19.44:sdk-*-javadoc.jarsdk-*.jarsdk-*-sources.jarWarning
javadoc.io shows the placeholder page, not the class reference, for every version released after this. Merging this is a non-bot change, so the next release waits for approval in
release-manual.Sonatype allows this: "If you cannot provide sources or documentation, we allow uploading placeholder
.jarfiles in order to pass validation" (requirements). IDEs show docs from the sources jar, which is unchanged. Stack traces keep file names and line numbers; a debugger stepping into SDK code no longer shows local variable names. Jackson uses the generated@JsonPropertyannotations, not local variable tables.🤖 Generated with Claude Code