Skip to content

Commit 2990b69

Browse files
committed
Polish "Fix detection of snapshot version when configuring repositories"
See gh-21912
1 parent 20f05f4 commit 2990b69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ allprojects {
2020
if (!version.endsWith('RELEASE')) {
2121
maven { url "https://repo.spring.io/milestone" }
2222
}
23-
if (version.endsWith('SNAPSHOT')) {
23+
if (version.endsWith('-SNAPSHOT')) {
2424
maven { url "https://repo.spring.io/snapshot" }
2525
}
2626
}

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pluginManagement {
55
maven {
66
url 'https://repo.spring.io/plugins-release'
77
}
8-
if (version.endsWith('SNAPSHOT')) {
8+
if (version.endsWith('-SNAPSHOT')) {
99
maven { url "https://repo.spring.io/snapshot" }
1010
}
1111
}

0 commit comments

Comments
 (0)