Skip to content

Commit 5ee7f28

Browse files
committed
Use the Spring Build Conventions Gradle Plugins, io.spring.gradle.convention.Utils class to determine the type of release to perform.
1 parent abd7397 commit 5ee7f28

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

build.gradle

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import io.spring.gradle.convention.Utils
2+
13
buildscript {
24
repositories {
35
mavenCentral()
@@ -44,14 +46,16 @@ allprojects {
4446

4547
description = 'Spring Session for Apache Geode'
4648

47-
//ext['groovy.version'] = "$groovyVersion"
49+
// Define dependency version override Gradle Project extension properties.
4850
//ext['spring.version'] = "$springVersion"
4951
//ext['spring-framework.version'] = "$springVersion"
5052
//ext['spring-data-bom.version'] = "$springDataBomVersion"
5153
//ext['spring-session-bom.version'] = "$springSessionBomVersion"
5254

53-
ext.snapshotBuild = version.endsWith('SNAPSHOT')
54-
ext.releaseBuild = version.endsWith('RELEASE')
55-
ext.milestoneBuild = !(releaseBuild || snapshotBuild)
55+
// Define Gradle build in terms of the type of release (e.g. snapshot, milestone or GA release).
56+
ext.snapshotBuild = Utils.isSnapshot(project)
57+
ext.milestoneBuild = Utils.isMilestone(project)
58+
ext.releaseBuild = Utils.isRelease(project)
5659

60+
// Declare maven-pom-editor Gradle script plugin.
5761
ext.MAVEN_POM_EDITOR_GRADLE = "$rootDir/gradle/maven-pom-editor.gradle"

gradle.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ org.gradle.jvmargs=-Xmx2g -Dfile.encoding=UTF-8
22
deployDocsHost=docs-ip.spring.io
33
apacheGeodeVersion=1.14.2
44
findbugsVersion=3.0.2
5-
# The Spring Boot & Spring Session version are the only required version properties.
6-
# The other Spring version properties are for overriding/testing purposes.
75
springVersion=5.3.14
86
springBootVersion=2.6.2
97
springDataBomVersion=2021.1.0

0 commit comments

Comments
 (0)