Skip to content

Commit

Permalink
Add removeJarVersionNumbers build setting
Browse files Browse the repository at this point in the history
This is handy to enable consistent local version numbers rather than updating file paths each release.
  • Loading branch information
tylerbenson committed Mar 23, 2023
1 parent a6bc3b1 commit 915f86b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions javaagent/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ tasks {
dependsOn(shadowJar, baseJavaagentJar)
}

if((findProperty("removeJarVersionNumbers") ?: "false").toString().toBoolean()) {
withType<AbstractArchiveTask>().configureEach {
archiveVersion.set("")
}
}

withType<Test>().configureEach {
dependsOn(shadowJar)

Expand Down

0 comments on commit 915f86b

Please sign in to comment.