Skip to content

Commit

Permalink
Publish a no-classifier jar too (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Rzeszutek authored Jul 27, 2021
1 parent 722777d commit c575d1e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions agent/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,19 @@ tasks {
}
}

val mainShadowJar by registering(Jar::class) {
archiveClassifier.set("")

from(zipTree(shadowJar.get().archiveFile))

manifest {
attributes(shadowJar.get().manifest.attributes)
}
}

assemble {
dependsOn(shadowJar)
dependsOn(mainShadowJar)
}

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

artifact(shadowJar)
artifact(mainShadowJar)
artifact(t.named("sourcesJar"))
artifact(t.named("javadocJar"))

Expand Down

0 comments on commit c575d1e

Please sign in to comment.