Browse Source

Polish "Fix detection of snapshot version when configuring repositories"

See gh-21912
pull/21936/head
Andy Wilkinson 6 years ago
parent
commit
2990b69693
  1. 2
      build.gradle
  2. 2
      settings.gradle

2
build.gradle

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

2
settings.gradle

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

Loading…
Cancel
Save