Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
Fix publising to Nexus (#722) (#725)
Browse files Browse the repository at this point in the history
This consolidates publishing shadow artifact and the rest into a single task.
The problem was that shadow publishing task was trying to publish its own POM
and that POM was messing up with the main POM.

Signed-off-by: Zbigniew Halas <[email protected]>
  • Loading branch information
Zbigniew Halas authored Jun 29, 2020
1 parent 652aeb9 commit a325bb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
3 changes: 3 additions & 0 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ publishing {
from components.java
artifact sourcesJar
artifact javadocJar
project.plugins.withId('com.github.johnrengelman.shadow') {
artifact project.tasks.shadowJar
}

pom {
name = 'jaeger-client'
Expand Down
14 changes: 0 additions & 14 deletions jaeger-thrift/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,3 @@ artifacts {
}
tests testJar
}

publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
}
}
}

signing {
if (isReleaseVersion) {
sign publishing.publications.shadow
}
}

0 comments on commit a325bb4

Please sign in to comment.