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" }