From 170e9c5b5ce795f929b66e3c0a7ce3c2a0f5f2cd Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 12 Apr 2022 10:47:36 +0100 Subject: [PATCH] Polish repository configuration --- build.gradle | 9 ++++++--- settings.gradle | 1 - 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index a204edc6..fb2bc10d 100644 --- a/build.gradle +++ b/build.gradle @@ -8,10 +8,13 @@ plugins { allprojects { group = "org.springframework.restdocs" repositories { - mavenLocal() mavenCentral() - maven { url "https://repo.spring.io/milestone" } - maven { url "https://repo.spring.io/snapshot" } + if (version.contains('-')) { + maven { url "https://repo.spring.io/milestone" } + } + if (version.endsWith('-SNAPSHOT')) { + maven { url "https://repo.spring.io/snapshot" } + } } } diff --git a/settings.gradle b/settings.gradle index b6f6cf84..9566d005 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,6 +1,5 @@ pluginManagement { repositories { - mavenLocal() mavenCentral() maven { url "https://repo.spring.io/plugins-release-local" } maven { url "https://repo.spring.io/release" }