Add Gradle build script extension to set the generated Maven POM file project lead developer in the POM developers section.

This commit is contained in:
John Blum
2018-12-21 17:46:10 -08:00
parent 5fdc7837b3
commit 8b8ce78399
2 changed files with 31 additions and 3 deletions

View File

@@ -12,15 +12,17 @@ buildscript {
apply plugin: 'io.spring.convention.root'
group = 'org.springframework.session'
description = 'Spring Session for Apache Geode'
ext['groovy.version'] = "$groovyVersion"
//ext['spring.version'] = "$springVersion"
//ext['spring-data-releasetrain.version'] = "$springDataReleaseTrainVersion"
//ext['spring-session-bom.version'] = "$springSessionBomVersion"
group = 'org.springframework.session'
description = 'Spring Session for Apache Geode'
ext.releaseBuild = version.endsWith('RELEASE')
ext.snapshotBuild = version.endsWith('SNAPSHOT')
ext.milestoneBuild = !(releaseBuild || snapshotBuild)
ext.IDE_GRADLE = "$rootDir/gradle/ide.gradle"
ext.MAVEN_POM_EDITOR_GRADLE = "$rootDir/gradle/maven-pom-editor.gradle"

View File

@@ -0,0 +1,26 @@
project.install {
repositories.mavenInstaller {
configurePom(project, pom)
}
}
project.uploadArchives {
repositories.mavenDeployer {
configurePom(project, pom)
}
}
def configurePom(project, pom) {
pom.whenConfigured { generatedPom ->
generatedPom.project {
developers {
developer {
id = 'jxblum'
name = "John Blum"
email = "jblum@pivotal.io"
}
}
}
}
}