Refactor and define Gradle snapshot, milestone and release builds in terms of the Spring Build Conventions Gradle Plugins, io.spring.gradle.convention.Utils class.
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
|
import io.spring.gradle.convention.Utils
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
ext {
|
ext {
|
||||||
snapshotBuild = version.endsWith('SNAPSHOT')
|
snapshotBuild = Utils.isSnapshot(project)
|
||||||
releaseBuild = version.endsWith('RELEASE')
|
milestoneBuild = Utils.isMilestone(project)
|
||||||
milestoneBuild = !(releaseBuild || snapshotBuild)
|
releaseBuild = Utils.isRelease(project)
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
@@ -54,6 +56,7 @@ subprojects {
|
|||||||
|
|
||||||
description = 'Spring Test Framework for Apache Geode'
|
description = 'Spring Test Framework for Apache Geode'
|
||||||
|
|
||||||
|
// Define dependency version overrides.
|
||||||
//ext['spring.version'] = "$springVersion"
|
//ext['spring.version'] = "$springVersion"
|
||||||
ext['spring-framework.version'] = "$springVersion"
|
ext['spring-framework.version'] = "$springVersion"
|
||||||
ext['spring-data-bom.version'] = "$springDataBomVersion"
|
ext['spring-data-bom.version'] = "$springDataBomVersion"
|
||||||
|
|||||||
Reference in New Issue
Block a user