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:
@@ -12,15 +12,17 @@ buildscript {
|
|||||||
|
|
||||||
apply plugin: 'io.spring.convention.root'
|
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.version'] = "$springVersion"
|
||||||
//ext['spring-data-releasetrain.version'] = "$springDataReleaseTrainVersion"
|
//ext['spring-data-releasetrain.version'] = "$springDataReleaseTrainVersion"
|
||||||
//ext['spring-session-bom.version'] = "$springSessionBomVersion"
|
//ext['spring-session-bom.version'] = "$springSessionBomVersion"
|
||||||
|
|
||||||
group = 'org.springframework.session'
|
|
||||||
description = 'Spring Session for Apache Geode'
|
|
||||||
|
|
||||||
ext.releaseBuild = version.endsWith('RELEASE')
|
ext.releaseBuild = version.endsWith('RELEASE')
|
||||||
ext.snapshotBuild = version.endsWith('SNAPSHOT')
|
ext.snapshotBuild = version.endsWith('SNAPSHOT')
|
||||||
ext.milestoneBuild = !(releaseBuild || snapshotBuild)
|
ext.milestoneBuild = !(releaseBuild || snapshotBuild)
|
||||||
|
|
||||||
ext.IDE_GRADLE = "$rootDir/gradle/ide.gradle"
|
ext.IDE_GRADLE = "$rootDir/gradle/ide.gradle"
|
||||||
|
ext.MAVEN_POM_EDITOR_GRADLE = "$rootDir/gradle/maven-pom-editor.gradle"
|
||||||
|
|||||||
26
gradle/maven-pom-editor.gradle
Normal file
26
gradle/maven-pom-editor.gradle
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user