Merge pull request #21912 from eddumelendez

* gh-21912:
  Polish "Fix detection of snapshot version when configuring repositories"
  Fix detection of snapshot version when configuring repositories

Closes gh-21912
This commit is contained in:
Andy Wilkinson
2020-06-15 09:19:36 +01:00
2 changed files with 2 additions and 2 deletions

View File

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

View File

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