From 89f1a6f01c7d3c0de4cf522d94b71e958bbc0737 Mon Sep 17 00:00:00 2001 From: John Blum Date: Tue, 7 Dec 2021 19:49:33 -0800 Subject: [PATCH] Configure Gradle build to use the local Spring Build Conventions Gradle Plugins. --- build.gradle | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 29563bc..93364dd 100644 --- a/build.gradle +++ b/build.gradle @@ -1,11 +1,13 @@ buildscript { - dependencies { - classpath 'io.spring.gradle:spring-build-conventions:0.0.38' - classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion" + ext { + snapshotBuild = version.endsWith('SNAPSHOT') + releaseBuild = version.endsWith('RELEASE') + milestoneBuild = !(releaseBuild || snapshotBuild) } repositories { mavenCentral() gradlePluginPortal() + maven { url 'https://repo.spring.io/plugins-release' } maven { url 'https://repo.spring.io/plugins-snapshot' if (project.hasProperty('artifactoryUsername')) { @@ -16,6 +18,9 @@ buildscript { } } } + dependencies { + classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion" + } } apply plugin: 'io.spring.convention.root' @@ -53,10 +58,6 @@ description = 'Spring Test Framework for Apache Geode and VMware Tanzu GemFire u ext['spring-framework.version'] = "$springVersion" ext['spring-data-bom.version'] = "$springDataBomVersion" -ext.releaseBuild = version.endsWith('RELEASE') -ext.snapshotBuild = version.endsWith('SNAPSHOT') -ext.milestoneBuild = !(releaseBuild || snapshotBuild) - ext.MAVEN_POM_EDITOR_GRADLE = "$rootDir/gradle/maven-pom-editor.gradle" nohttp {