From 4632d6af992928962386d01ce5fb0b4c74bea06a Mon Sep 17 00:00:00 2001 From: John Blum Date: Tue, 17 Nov 2020 11:11:48 -0800 Subject: [PATCH] Declare and configure repositories for all projects. --- build.gradle | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 6a3c82d2..a88c4e62 100644 --- a/build.gradle +++ b/build.gradle @@ -11,8 +11,28 @@ buildscript { apply plugin: 'io.spring.convention.root' -group = 'org.springframework.geode' -description = 'Spring Boot for Apache Geode & Pivotal GemFire' +allprojects { + + group = 'org.springframework.geode' + + repositories { + + mavenCentral() + + if (version.contains('-')) { + maven { url "https://repo.spring.io/milestone" } + } + if (version.endsWith('-SNAPSHOT')) { + maven { url "https://repo.spring.io/snapshot" } + } + } + + configurations.all { + resolutionStrategy.cacheChangingModulesFor 0, "minutes" + } +} + +description = 'Spring Boot for Apache Geode' //ext['spring.version'] = "$springVersion" //ext['spring-framework.version'] = "$springVersion"