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:
John Blum
2022-03-22 17:56:36 -07:00
parent 156a3a32dc
commit f6f9645aad

View File

@@ -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"