build: remove maven-javadoc-plugin skip in core-shaded#937
Merged
dkropachev merged 1 commit intoJun 25, 2026
Merged
Conversation
📝 WalkthroughWalkthroughThe 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…ckson 2.21 The top-level <configuration><skip>true</skip></configuration> block was introduced in deaeb1c ("build: drop Java 8 support", May 25 2026) to paper over a javadoc compilation failure caused by the Netty 4.1.135.Final bump. That version added compile-time references to org.jetbrains:annotations (@NotNull, @VisibleForTesting, @Async.Execute/Schedule). Jackson 2.21.x sources also reference ch.randelshofer:fastdoubleparser, which is bundled- and-shaded inside jackson-core with no standalone resolvable Maven coordinate. With <skip>true</skip> at the plugin level, no javadoc jar is attached for the core-shaded artifact, causing Sonatype Central to reject the release. Fix: - Remove the global skip flag (the attach-javadocs execution is still in place) - Add org.jetbrains:annotations:23.0.0 to additionalDependencies (matches the version Netty uses as a provided dependency) - Set failOnError=false for the fastdoubleparser case; those sources are already excluded from the output via excludePackageNames, so the jar still contains the full public API documentation
b58423b to
5c942b2
Compare
dkropachev
approved these changes
Jun 25, 2026
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.
Summary
Fixes
core-shadedjavadoc generation broken since deaeb1c ("build: drop Java 8 support", May 25 2026), which added<skip>true</skip>to themaven-javadoc-pluginincore-shaded/pom.xmlto paper over a javadoc compilation failure introduced by the Netty 4.1.135.Final bump.Problem
With
<skip>true</skip>at the plugin level, no javadoc jar is attached for thecore-shadedartifact during a release. Sonatype Central rejects the upload because javadoc jars are required for all published artifacts.The underlying compilation failure was caused by two missing dependencies on the javadoc classpath when processing the shaded sources:
org.jetbrains:annotations— Netty 4.1.135.Final added@NotNull,@VisibleForTesting, and@Async.Execute/Schedulefrom this package.ch.randelshofer:fastdoubleparser— Jackson 2.21.x sources reference this package, but it is bundled-and-shaded insidejackson-corewith no standalone resolvable Maven coordinate.Changes
<skip>true</skip>global plugin configuration.org.jetbrains:annotations:23.0.0toadditionalDependenciesin theattach-javadocsexecution (same version Netty uses as a provided dependency).<failOnError>false</failOnError>to theattach-javadocsexecution to tolerate the unresolvable fastdoubleparser references. Those sources are already excluded from the javadoc output viaexcludePackageNames, so the jar still contains the full public API documentation.Test plan
core-shadedjavadoc jar is generated and accepted by Sonatype Central.