Add Maven POM editor Gradle build file to configure the generated project pom.xml correctly.
This commit is contained in:
12
build.gradle
12
build.gradle
@@ -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/**/*'
|
||||
}
|
||||
|
||||
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-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)
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
apply plugin: 'io.spring.convention.spring-module'
|
||||
apply from: MAVEN_POM_EDITOR_GRADLE
|
||||
|
||||
description = "Spring Test Framework for Pivotal GemFire"
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
apply plugin: 'io.spring.convention.spring-module'
|
||||
apply from: MAVEN_POM_EDITOR_GRADLE
|
||||
|
||||
description = "Spring Test Framework for Apache Geode"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user