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
This commit is contained in:
Roy Clarkson 2020-07-22 09:31:37 -04:00 committed by Andy Wilkinson
parent 88e2810801
commit 374338e32c

View File

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