From 67e761cb64b75ed09e5ece050eb61044a0359fe8 Mon Sep 17 00:00:00 2001 From: Scott Murphy Heiberg Date: Mon, 11 Nov 2024 07:36:05 -0800 Subject: [PATCH] allow overriding snapshot url --- .../publishing/internal/GrailsCentralPublishGradlePlugin.groovy | 2 +- .../plugin/publishing/internal/GrailsPublishExtension.groovy | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/groovy/org/grails/gradle/plugin/publishing/internal/GrailsCentralPublishGradlePlugin.groovy b/src/main/groovy/org/grails/gradle/plugin/publishing/internal/GrailsCentralPublishGradlePlugin.groovy index 817429f3..34f3ecff 100644 --- a/src/main/groovy/org/grails/gradle/plugin/publishing/internal/GrailsCentralPublishGradlePlugin.groovy +++ b/src/main/groovy/org/grails/gradle/plugin/publishing/internal/GrailsCentralPublishGradlePlugin.groovy @@ -131,7 +131,7 @@ BINTRAY_KEY=key username = artifactoryUsername password = artifactoryPassword } - url getDefaultGrailsCentralSnapshotRepo() + url gpe.snapshotUrl? gpe.snapshotUrl : getDefaultGrailsCentralSnapshotRepo() } } } diff --git a/src/main/groovy/org/grails/gradle/plugin/publishing/internal/GrailsPublishExtension.groovy b/src/main/groovy/org/grails/gradle/plugin/publishing/internal/GrailsPublishExtension.groovy index 037ab9bd..5e3f060b 100644 --- a/src/main/groovy/org/grails/gradle/plugin/publishing/internal/GrailsPublishExtension.groovy +++ b/src/main/groovy/org/grails/gradle/plugin/publishing/internal/GrailsPublishExtension.groovy @@ -111,6 +111,8 @@ class GrailsPublishExtension { */ String sonatypeOssPassword + String snapshotUrl + License getLicense() { return license }