From bd4d157bc7a88df64d8d09eea7d031695bcb0470 Mon Sep 17 00:00:00 2001 From: ciscoo Date: Sat, 9 Sep 2023 10:24:43 -0500 Subject: [PATCH] Only publish snapshots when version is a snapshot --- cxf-codegen-gradle/build.gradle.kts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cxf-codegen-gradle/build.gradle.kts b/cxf-codegen-gradle/build.gradle.kts index 5fd72931..302220cf 100644 --- a/cxf-codegen-gradle/build.gradle.kts +++ b/cxf-codegen-gradle/build.gradle.kts @@ -158,4 +158,16 @@ afterEvaluate { } } } + tasks { + named("publishCxfCodegenPluginMarkerMavenPublicationToSonatypeSnapshotsRepository") { + onlyIf("snapshot") { + isSnapshot + } + } + named("publishPluginMavenPublicationToSonatypeSnapshotsRepository") { + onlyIf("snapshot") { + isSnapshot + } + } + } }