Skip to content

Commit

Permalink
Only publish snapshots when version is a snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscoo committed Sep 9, 2023
1 parent 711b6b2 commit bd4d157
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cxf-codegen-gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,16 @@ afterEvaluate {
}
}
}
tasks {
named("publishCxfCodegenPluginMarkerMavenPublicationToSonatypeSnapshotsRepository") {
onlyIf("snapshot") {
isSnapshot
}
}
named("publishPluginMavenPublicationToSonatypeSnapshotsRepository") {
onlyIf("snapshot") {
isSnapshot
}
}
}
}

0 comments on commit bd4d157

Please sign in to comment.