Update conditional inclusion of milestone repository

The new Spring version schema does not include a "RELEASE" version.
This commit modifies the Gradle conditional to include the milestone
repository for all milestone and snapshot versions.

See gh-22506
pull/22258/head
Roy Clarkson 4 years ago committed by Andy Wilkinson
parent 88e2810801
commit 374338e32c

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

Loading…
Cancel
Save