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.
This commit is contained in:
John Blum
2021-11-16 20:40:51 -08:00
parent 8c0f72eacb
commit 6e8aef70e2

View File

@@ -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/**"
}