From 5c942b2279bb99bf9adbade75060a4b7a859f756 Mon Sep 17 00:00:00 2001 From: Mikita Hradovich Date: Wed, 24 Jun 2026 18:56:33 +0200 Subject: [PATCH] build: fix javadoc generation in core-shaded for Netty 4.1.135 and Jackson 2.21 The top-level true block was introduced in deaeb1c44 ("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 true 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 --- core-shaded/pom.xml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/core-shaded/pom.xml b/core-shaded/pom.xml index 7775d4ad2a7..213ab184281 100644 --- a/core-shaded/pom.xml +++ b/core-shaded/pom.xml @@ -280,9 +280,6 @@ maven-javadoc-plugin - - true - attach-javadocs @@ -293,11 +290,22 @@ ${project.build.directory}/shaded-sources com.datastax.*.driver.internal*,com.datastax.oss.driver.shaded* + false + + + org.jetbrains + annotations + 23.0.0 + org.xerial.snappy snappy-java