From 20f05f4d8234097449f75dbd9b23644260df2cd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edd=C3=BA=20Mel=C3=A9ndez?= Date: Sun, 14 Jun 2020 00:31:11 -0500 Subject: [PATCH] Fix detection of snapshot version when configuring repositories As part of 8e8548756e, snapshot dependency resolution change from `BUILD-SNAPSHOT` to `-SNAPSHOT`. Currently, if we add a version dependency which is store in snapshots it is not resolved. This commit allow to resolves plugins and dependencies. See gh-21912 --- build.gradle | 2 +- settings.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 720d0c74c1..d87f3aeedf 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,7 @@ allprojects { if (!version.endsWith('RELEASE')) { maven { url "https://repo.spring.io/milestone" } } - if (version.endsWith('BUILD-SNAPSHOT')) { + if (version.endsWith('SNAPSHOT')) { maven { url "https://repo.spring.io/snapshot" } } } diff --git a/settings.gradle b/settings.gradle index 0c5d6d98cf..0d9f74cd56 100644 --- a/settings.gradle +++ b/settings.gradle @@ -5,7 +5,7 @@ pluginManagement { maven { url 'https://repo.spring.io/plugins-release' } - if (version.endsWith('BUILD-SNAPSHOT')) { + if (version.endsWith('SNAPSHOT')) { maven { url "https://repo.spring.io/snapshot" } } }