mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Polish "Fix detection of snapshot version when configuring repositories"
See gh-21912
This commit is contained in:
parent
20f05f4d82
commit
2990b69693
|
@ -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" }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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…
Reference in New Issue
Block a user