From d7a2af575e3dfbbc2c429c546c66e783c93358a5 Mon Sep 17 00:00:00 2001 From: Devin Smith Date: Wed, 26 Jun 2024 18:11:16 -0700 Subject: [PATCH] Add javadoc and sources jar for shadow publishing This (hopefully) fixes the maven central javadoc and sources jar requirement. --- .../io.deephaven.java-shadow-publishing-conventions.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/groovy/io.deephaven.java-shadow-publishing-conventions.gradle b/buildSrc/src/main/groovy/io.deephaven.java-shadow-publishing-conventions.gradle index ccb61709b22..72852b3af32 100644 --- a/buildSrc/src/main/groovy/io.deephaven.java-shadow-publishing-conventions.gradle +++ b/buildSrc/src/main/groovy/io.deephaven.java-shadow-publishing-conventions.gradle @@ -25,7 +25,9 @@ PublishingTools.setupPublications(project) { publication -> // the pom late enough to pick up gradle's own artifactId wiring from our archivesBaseName changes. // Also un-sets the classifier for the shadow jar, since we want this to be the default artifact // project.shadow.component(publication) - publication.artifact(source: project.tasks.named("shadowJar"), classifier: '') + publication.artifact(source: project.tasks.named('shadowJar'), classifier: '') + publication.artifact(source: project.tasks.named('sourcesJar')) + publication.artifact(source: project.tasks.named('javadocJar')) publication.pom { withXml { def root = asNode()