Skip to content

Commit

Permalink
Add artifact clauses to shadow publish (#3342)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuraag Agrawal authored Jun 17, 2021
1 parent c9207fe commit 8e6a464
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildSrc/src/main/kotlin/otel.publish-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ publishing {
register<MavenPublication>("maven") {
if (tasks.names.contains("shadowJar") && findProperty("noShadowPublish") != true) {
the<ShadowExtension>().component(this)
// These two are here just to satisfy Maven Central
artifact(tasks["sourcesJar"])
artifact(tasks["javadocJar"])
} else {
plugins.withId("java-platform") {
from(components["javaPlatform"])
Expand Down

0 comments on commit 8e6a464

Please sign in to comment.