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
This commit is contained in:
Eddú Meléndez 2020-06-14 00:31:11 -05:00 committed by Andy Wilkinson
parent ce4ef5ed81
commit 20f05f4d82
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ allprojects {
if (!version.endsWith('RELEASE')) { if (!version.endsWith('RELEASE')) {
maven { url "https://repo.spring.io/milestone" } maven { url "https://repo.spring.io/milestone" }
} }
if (version.endsWith('BUILD-SNAPSHOT')) { if (version.endsWith('SNAPSHOT')) {
maven { url "https://repo.spring.io/snapshot" } maven { url "https://repo.spring.io/snapshot" }
} }
} }

View File

@ -5,7 +5,7 @@ pluginManagement {
maven { maven {
url 'https://repo.spring.io/plugins-release' url 'https://repo.spring.io/plugins-release'
} }
if (version.endsWith('BUILD-SNAPSHOT')) { if (version.endsWith('SNAPSHOT')) {
maven { url "https://repo.spring.io/snapshot" } maven { url "https://repo.spring.io/snapshot" }
} }
} }