Skip to content

Commit d059dd6

Browse files
authored
Fix temporal-shaded packaging type (temporalio#1657)
1 parent 316e3da commit d059dd6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

gradle/publishing.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ subprojects {
1616
publications {
1717
mavenJava(MavenPublication) {
1818
afterEvaluate {
19-
if (tasks.findByName("shadowJar") != null) artifact shadowJar
2019
from components.java
2120
}
2221
}

temporal-shaded/build.gradle

+3-4
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ configurations.shadow {
6161
transitive = false
6262
}
6363

64-
// we are not interested in a regular jar from this build
65-
project.tasks.named("jar")configure { enabled = false}
66-
6764
shadowJar {
6865
configurations = [project.configurations.shadow]
6966

@@ -73,4 +70,6 @@ shadowJar {
7370

7471
mergeServiceFiles()
7572
archiveClassifier.set("")
76-
}
73+
}
74+
75+
shadowJar.shouldRunAfter(jar)

0 commit comments

Comments
 (0)