Skip to content

fix: publish empty javadoc jars instead of full Dokka HTML - #751

Merged
mattmapadmi merged 1 commit into
developfrom
fix/empty-javadoc-jars
Jul 30, 2026
Merged

fix: publish empty javadoc jars instead of full Dokka HTML#751
mattmapadmi merged 1 commit into
developfrom
fix/empty-javadoc-jars

Conversation

@mattmapadmi

Copy link
Copy Markdown
Contributor

Description

The vanniktech publish plugin was attaching the full Dokka HTML render as the javadoc jar on every published artifact (root + all per-target artifacts). API docs are already hosted on the docs site via dokkaGeneratePublicationHtml, so this was pure duplication — javadoc jars made up ~60% of each release's upload weight against Maven Central's usage limits.

Configure each publishing module to emit an empty javadoc jar stub (satisfies Central's validation requirement without the payload). Verified locally: mockzilla-common-jvm javadoc jar dropped from 1.28MB to 261 bytes.

Related issue

Private Slack conversation

Checklist

  • [-] Tests added/updated for the change
  • [-] ./gradlew spotlessApply run (for Kotlin changes) / formatting run (for Dart/Swift changes)
  • [-] Docs updated if user-facing behaviour changed

The vanniktech publish plugin was attaching the full Dokka HTML render
as the javadoc jar on every published artifact (root + all per-target
artifacts). API docs are already hosted on the docs site via
dokkaGeneratePublicationHtml, so this was pure duplication — javadoc
jars made up ~60% of each release's upload weight against Maven
Central's usage limits.

Configure each publishing module to emit an empty javadoc jar stub
(satisfies Central's validation requirement without the payload).
Verified locally: mockzilla-common-jvm javadoc jar dropped from
1.28MB to 261 bytes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@mattmapadmi
mattmapadmi requested a review from SamC-Apadmi July 29, 2026 16:16
@mattmapadmi
mattmapadmi merged commit f6417f6 into develop Jul 30, 2026
13 checks passed
@mattmapadmi
mattmapadmi deleted the fix/empty-javadoc-jars branch July 30, 2026 08:01
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