Skip to content

Commit c575d1e

Browse files
author
Mateusz Rzeszutek
authored
Publish a no-classifier jar too (#369)
1 parent 722777d commit c575d1e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

agent/build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,19 @@ tasks {
105105
}
106106
}
107107

108+
val mainShadowJar by registering(Jar::class) {
109+
archiveClassifier.set("")
110+
111+
from(zipTree(shadowJar.get().archiveFile))
112+
113+
manifest {
114+
attributes(shadowJar.get().manifest.attributes)
115+
}
116+
}
117+
108118
assemble {
109119
dependsOn(shadowJar)
120+
dependsOn(mainShadowJar)
110121
}
111122

112123
val t = this
@@ -118,6 +129,7 @@ tasks {
118129
version = project.version.toString()
119130

120131
artifact(shadowJar)
132+
artifact(mainShadowJar)
121133
artifact(t.named("sourcesJar"))
122134
artifact(t.named("javadocJar"))
123135

0 commit comments

Comments
 (0)