Skip to content

Commit

Permalink
[publish] fix shadow jar publication
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogDevelopper committed May 16, 2024
1 parent 19d9875 commit c83c211
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,9 @@ signing {
}

tasks {
matching { it is PublishToMavenRepository && it.repository.name == "sonatype" }.all {
onlyIf { releaseVersion }
}
matching { it is PublishToMavenRepository && it.repository.name == "github" }.all {
onlyIf { !releaseVersion }
withType<PublishToMavenRepository>().configureEach {
onlyIf {
(releaseVersion && repository.name == "sonatype") || (!releaseVersion && repository.name == "github")
}
}
}
3 changes: 1 addition & 2 deletions consul-populate-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,11 @@ tasks {
jar {
enabled = false
}

shadowJar {
// minimize() waiting https://github.com/johnrengelman/shadow/pull/876
archiveClassifier.set("")
}


test {
// https://github.com/stefanbirkner/system-lambda/issues/27
systemProperty("java.security.manager", "allow")
Expand Down

0 comments on commit c83c211

Please sign in to comment.