Use the Spring Build Conventions Gradle Plugins, io.spring.gradle.convention.Utils class to determine the type of release to perform.

This commit is contained in:
John Blum
2022-03-23 14:39:25 -07:00
parent abd7397f8b
commit 5ee7f28336
2 changed files with 8 additions and 6 deletions

View File

@@ -1,3 +1,5 @@
import io.spring.gradle.convention.Utils
buildscript {
repositories {
mavenCentral()
@@ -44,14 +46,16 @@ allprojects {
description = 'Spring Session for Apache Geode'
//ext['groovy.version'] = "$groovyVersion"
// Define dependency version override Gradle Project extension properties.
//ext['spring.version'] = "$springVersion"
//ext['spring-framework.version'] = "$springVersion"
//ext['spring-data-bom.version'] = "$springDataBomVersion"
//ext['spring-session-bom.version'] = "$springSessionBomVersion"
ext.snapshotBuild = version.endsWith('SNAPSHOT')
ext.releaseBuild = version.endsWith('RELEASE')
ext.milestoneBuild = !(releaseBuild || snapshotBuild)
// Define Gradle build in terms of the type of release (e.g. snapshot, milestone or GA release).
ext.snapshotBuild = Utils.isSnapshot(project)
ext.milestoneBuild = Utils.isMilestone(project)
ext.releaseBuild = Utils.isRelease(project)
// Declare maven-pom-editor Gradle script plugin.
ext.MAVEN_POM_EDITOR_GRADLE = "$rootDir/gradle/maven-pom-editor.gradle"

View File

@@ -2,8 +2,6 @@ org.gradle.jvmargs=-Xmx2g -Dfile.encoding=UTF-8
deployDocsHost=docs-ip.spring.io
apacheGeodeVersion=1.14.2
findbugsVersion=3.0.2
# The Spring Boot & Spring Session version are the only required version properties.
# The other Spring version properties are for overriding/testing purposes.
springVersion=5.3.14
springBootVersion=2.6.2
springDataBomVersion=2021.1.0