From 6e8aef70e21b0219bf6bad17471cb3ef94463b8b Mon Sep 17 00:00:00 2001 From: John Blum Date: Tue, 16 Nov 2021 20:40:51 -0800 Subject: [PATCH] Refactor the SSDG Gradle build project to build with the local Spring Build Conventions Gradle Plugins. Move Gradle build script extensions under the ext { .. } code block inside the buildscript { .. } code block. Declare the repo.spring.io/plugins-release repository to be used by the Gradle build script. Configure the nohttp Gradle Plugin. --- build.gradle | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index df9009b..6027213 100644 --- a/build.gradle +++ b/build.gradle @@ -1,8 +1,13 @@ buildscript { + ext { + snapshotBuild = version.endsWith('SNAPSHOT') + releaseBuild = version.endsWith('RELEASE') + milestoneBuild = !(releaseBuild || snapshotBuild) + } repositories { mavenCentral() gradlePluginPortal() - maven { url 'https://repo.spring.io/release' } + maven { url 'https://repo.spring.io/plugins-release' } maven { url 'https://repo.spring.io/plugins-snapshot' if (project.hasProperty('artifactoryUsername')) { @@ -14,7 +19,6 @@ buildscript { } } dependencies { - classpath 'io.spring.gradle:spring-build-conventions:0.0.38' classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion" } } @@ -50,8 +54,8 @@ description = 'Spring Session for Apache Geode' //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) - ext.MAVEN_POM_EDITOR_GRADLE = "$rootDir/gradle/maven-pom-editor.gradle" + +nohttp { + source.exclude "buildSrc/build/**" +}