Add Maven POM editor Gradle build file to configure the generated project pom.xml correctly.

This commit is contained in:
John Blum
2019-07-25 19:43:36 -07:00
parent 6a1968ba23
commit 6830d1591e
4 changed files with 46 additions and 0 deletions

View File

@@ -20,3 +20,15 @@ ext['spring-data-releasetrain.version'] = "$springDataReleaseTrainVersion"
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"
project.checkstyle.sourceSets.forEach { it -> it.excludes '**/target', '**/out', '**/build' }
//project.tasks.findByName('checkstyleNohttp').configure {
// exclude '**/target/**/*', '**/out/**/*', '**/build/**/*'
//}
tasks.withType(Checkstyle) {
exclude '**/target/**/*', '**/out/**/*', '**/build/**/*'
}

View 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-test-data-geode.git'
developerConnection = 'scm:git:git@github.com:spring-projects/spring-test-data-geode.git'
url = 'https://github.com/spring-projects/spring-test-data-geode'
}
}
}
}
project.install {
repositories.mavenInstaller {
customizePom(project, pom)
}
}
project.uploadArchives {
repositories.mavenDeployer {
customizePom(project, pom)
}
}

View File

@@ -1,4 +1,5 @@
apply plugin: 'io.spring.convention.spring-module'
apply from: MAVEN_POM_EDITOR_GRADLE
description = "Spring Test Framework for Pivotal GemFire"

View File

@@ -1,4 +1,5 @@
apply plugin: 'io.spring.convention.spring-module'
apply from: MAVEN_POM_EDITOR_GRADLE
description = "Spring Test Framework for Apache Geode"