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

Commit a325bb4

Browse files
author
Zbigniew Halas
authored
Fix publising to Nexus (#722) (#725)
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]>
1 parent 652aeb9 commit a325bb4

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

gradle/publish.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ publishing {
1919
from components.java
2020
artifact sourcesJar
2121
artifact javadocJar
22+
project.plugins.withId('com.github.johnrengelman.shadow') {
23+
artifact project.tasks.shadowJar
24+
}
2225

2326
pom {
2427
name = 'jaeger-client'

jaeger-thrift/build.gradle

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,3 @@ artifacts {
8080
}
8181
tests testJar
8282
}
83-
84-
publishing {
85-
publications {
86-
shadow(MavenPublication) { publication ->
87-
project.shadow.component(publication)
88-
}
89-
}
90-
}
91-
92-
signing {
93-
if (isReleaseVersion) {
94-
sign publishing.publications.shadow
95-
}
96-
}

0 commit comments

Comments
 (0)