Declare the Spring plugins-release repository in buildscript. Add authentication (credentials) to the Spring plugins-snapshot repository declaration in buildscript. Redefined the snapshotBuild, milestoneBuild and releaseBuild project extensions properties in terms of the Utils Groovy class from Spring Build Conventions Gradle Plugins.
63 lines
1.5 KiB
Groovy
63 lines
1.5 KiB
Groovy
import io.spring.gradle.convention.Utils
|
|
|
|
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
maven { url 'https://repo.spring.io/plugins-release' }
|
|
maven {
|
|
url 'https://repo.spring.io/plugins-snapshot'
|
|
if (project.hasProperty('artifactoryUsername')) {
|
|
credentials {
|
|
username "$artifactoryUsername"
|
|
password "$artifactoryPassword"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
dependencies {
|
|
classpath 'io.spring.gradle:spring-build-conventions:0.0.38'
|
|
classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion"
|
|
}
|
|
}
|
|
|
|
apply plugin: 'io.spring.convention.root'
|
|
|
|
allprojects {
|
|
|
|
group = 'org.springframework.geode'
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
if (version.contains('-')) {
|
|
maven { url "https://repo.spring.io/milestone" }
|
|
}
|
|
if (version.endsWith('-SNAPSHOT')) {
|
|
maven { url "https://repo.spring.io/snapshot" }
|
|
}
|
|
}
|
|
|
|
configurations.all {
|
|
resolutionStrategy.cacheChangingModulesFor 0, "minutes"
|
|
}
|
|
}
|
|
|
|
nohttp {
|
|
source.excludes = [ "**/.gradle/**", "**/.m2/**" ]
|
|
}
|
|
|
|
description = 'Spring Boot for Apache Geode'
|
|
|
|
//ext['spring.version'] = "$springVersion"
|
|
//ext['spring-framework.version'] = "$springVersion"
|
|
//ext['spring-data-bom.version'] = "$springDataBomVersion"
|
|
//ext['spring-session-bom.version'] = "$springSessionBomVersion"
|
|
|
|
ext.snapshotBuild = Utils.isSnapshot(project)
|
|
ext.milestoneBuild = Utils.isMilestone(project)
|
|
ext.releaseBuild = Utils.isRelease(project)
|
|
|
|
ext.MAVEN_POM_EDITOR_GRADLE = "$rootDir/gradle/maven-pom-editor.gradle"
|