Skip to content

Commit

Permalink
Add javadoc and sources jar for shadow publishing
Browse files Browse the repository at this point in the history
This (hopefully) fixes the maven central javadoc and sources jar requirement.
  • Loading branch information
devinrsmith committed Jun 27, 2024
1 parent 4e0dca1 commit d7a2af5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d7a2af5

Please sign in to comment.