From 5504d606cf7f60d210525221d7c230333d8ae01f Mon Sep 17 00:00:00 2001 From: Mark Phelps <209477+markphelps@users.noreply.github.com> Date: Tue, 16 Jan 2024 10:33:16 -0500 Subject: [PATCH] chore: try to fix snapshot url --- flipt-java/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flipt-java/build.gradle b/flipt-java/build.gradle index 996128e..eabe56a 100644 --- a/flipt-java/build.gradle +++ b/flipt-java/build.gradle @@ -85,7 +85,9 @@ publishing { } repositories { maven { - url "$System.env.MAVEN_PUBLISH_REGISTRY_URL" + def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" + def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/" + url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl credentials { username "$System.env.MAVEN_USERNAME" password "$System.env.MAVEN_PASSWORD"