Add Gradle build file to configure the generated Maven POMs for SBDG modules.
Resolves gh-43.
This commit is contained in:
@@ -20,3 +20,5 @@ description = 'Spring Boot for Apache Geode & Pivotal GemFire'
|
||||
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"
|
||||
|
||||
32
gradle/maven-pom-editor.gradle
Normal file
32
gradle/maven-pom-editor.gradle
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
def customizePom(gradleProject, pom) {
|
||||
|
||||
pom.whenConfigured { generatedPom ->
|
||||
generatedPom.project {
|
||||
developers {
|
||||
developer {
|
||||
id = 'jxblum'
|
||||
name = "John Blum"
|
||||
email = "jblum@pivotal.io"
|
||||
}
|
||||
}
|
||||
scm {
|
||||
connection = 'scm:git:git@github.com:spring-projects/spring-boot-data-geode.git'
|
||||
developerConnection = 'scm:git:git@github.com:spring-projects/spring-boot-data-geode.git'
|
||||
url = 'https://github.com/spring-projects/spring-boot-data-geode'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
project.install {
|
||||
repositories.mavenInstaller {
|
||||
customizePom(project, pom)
|
||||
}
|
||||
}
|
||||
|
||||
project.uploadArchives {
|
||||
repositories.mavenDeployer {
|
||||
customizePom(project, pom)
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
apply plugin: 'io.spring.convention.spring-module'
|
||||
apply from: MAVEN_POM_EDITOR_GRADLE
|
||||
|
||||
description = "Spring Boot Actuator Starter for Pivotal GemFire"
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
apply plugin: 'io.spring.convention.spring-module'
|
||||
apply from: MAVEN_POM_EDITOR_GRADLE
|
||||
|
||||
description = "Spring Boot Starter for Spring Session using Pivotal GemFire"
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
apply plugin: 'io.spring.convention.spring-module'
|
||||
apply from: MAVEN_POM_EDITOR_GRADLE
|
||||
|
||||
description = "Spring Boot Test Starter for Pivotal GemFire"
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
apply plugin: 'io.spring.convention.spring-module'
|
||||
apply from: MAVEN_POM_EDITOR_GRADLE
|
||||
|
||||
description = "Spring Boot Starter for Pivotal GemFire"
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
apply plugin: 'io.spring.convention.spring-module'
|
||||
apply from: MAVEN_POM_EDITOR_GRADLE
|
||||
|
||||
description = "Spring Boot for Apache Geode Actuator Auto-Configuration"
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
apply plugin: 'io.spring.convention.spring-module'
|
||||
apply from: MAVEN_POM_EDITOR_GRADLE
|
||||
|
||||
description = "Spring Boot for Apache Geode Actuator"
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ plugins {
|
||||
}
|
||||
|
||||
apply plugin: 'io.spring.convention.spring-module'
|
||||
apply from: MAVEN_POM_EDITOR_GRADLE
|
||||
|
||||
description = "Spring Boot for Apache Geode Auto-Configuration"
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
apply plugin: 'io.spring.convention.spring-module'
|
||||
apply from: MAVEN_POM_EDITOR_GRADLE
|
||||
|
||||
description = "Spring Boot Actuator Starter for Apache Geode"
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
apply plugin: 'io.spring.convention.spring-module'
|
||||
apply from: MAVEN_POM_EDITOR_GRADLE
|
||||
|
||||
description = "Spring Boot Starter for Spring Session using Apache Geode"
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
apply plugin: 'io.spring.convention.spring-module'
|
||||
apply from: MAVEN_POM_EDITOR_GRADLE
|
||||
|
||||
description = "Spring Boot Test Starter for Apache Geode"
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
apply plugin: 'io.spring.convention.spring-module'
|
||||
apply from: MAVEN_POM_EDITOR_GRADLE
|
||||
|
||||
description = "Spring Boot Starter for Apache Geode"
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ plugins {
|
||||
}
|
||||
|
||||
apply plugin: 'io.spring.convention.spring-module'
|
||||
apply from: MAVEN_POM_EDITOR_GRADLE
|
||||
|
||||
description = "Spring Boot for Apache Geode"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user