From 2990b69693f023f550a7622e4f70e2291f009367 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 15 Jun 2020 09:19:09 +0100 Subject: [PATCH] Polish "Fix detection of snapshot version when configuring repositories" See gh-21912 --- build.gradle | 2 +- settings.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index d87f3aeedf..a3dbed08eb 100644 --- a/build.gradle +++ b/build.gradle @@ -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" } } } diff --git a/settings.gradle b/settings.gradle index 0d9f74cd56..783ee4c8cd 100644 --- a/settings.gradle +++ b/settings.gradle @@ -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" } } }