From 13015c3f26c11ba2fb5b7ba232d5051de11f5297 Mon Sep 17 00:00:00 2001 From: dgelessus <dgelessus@users.noreply.github.com> Date: Thu, 27 Apr 2023 20:08:18 +0200 Subject: [PATCH] Use Sonatype Snapshots repo only when the current version is a snapshot --- build.gradle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 7448fb5..5c7989a 100644 --- a/build.gradle +++ b/build.gradle @@ -17,9 +17,11 @@ project.targetCompatibility = '1.7' repositories { mavenCentral() - maven { - name "sonatype snapshots" - url "https://oss.sonatype.org/content/repositories/snapshots" + if (isSnapshot) { + maven { + name "sonatype snapshots" + url "https://oss.sonatype.org/content/repositories/snapshots" + } } } -- GitLab