Declare and configure repositories for all projects.

This commit is contained in:
John Blum
2020-11-17 12:38:56 -08:00
parent 5b23f7d8c0
commit b9e1834cce
2 changed files with 22 additions and 6 deletions

View File

@@ -5,14 +5,34 @@ buildscript {
} }
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
maven { url 'https://repo.spring.io/libs-release' } maven { url 'https://repo.spring.io/release' }
maven { url 'https://repo.spring.io/plugins-snapshot' } maven { url 'https://repo.spring.io/plugins-snapshot' }
} }
} }
apply plugin: 'io.spring.convention.root' apply plugin: 'io.spring.convention.root'
group = 'org.springframework.session' allprojects {
group = 'org.springframework.session'
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 Session for Apache Geode' description = 'Spring Session for Apache Geode'
ext['groovy.version'] = "$groovyVersion" ext['groovy.version'] = "$groovyVersion"

View File

@@ -1,7 +1,3 @@
repositories {
maven { url "https://repo.spring.io/libs-snapshot" }
}
dependencyManagement { dependencyManagement {
imports { imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:$springBootVersion" mavenBom "org.springframework.boot:spring-boot-dependencies:$springBootVersion"