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
pull/21936/head
Eddú Meléndez 4 years ago committed by Andy Wilkinson
parent ce4ef5ed81
commit 20f05f4d82

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

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

Loading…
Cancel
Save