11package com.jashmore
22
3+ import com.jashmore.utils.isSnapshotVersion
34import io.codearte.gradle.nexus.NexusStagingExtension
45import io.codearte.gradle.nexus.NexusStagingPlugin
56import org.gradle.api.Plugin
@@ -16,7 +17,6 @@ import org.gradle.plugins.signing.SigningExtension
1617import org.gradle.plugins.signing.SigningPlugin
1718import java.io.File
1819import java.net.URI
19- import com.jashmore.utils.isSnapshotVersion
2020
2121open class ReleasePluginExtension {
2222 /* *
@@ -89,35 +89,38 @@ open class ReleasePlugin : Plugin<Project> {
8989
9090 from(subProject.components[" java" ])
9191
92- pom {
93- name.set(determineModuleName(subProject.name))
94- description.set(subProject.description)
95- url.set(" http://github.com/jaidenashmore/java-dynamic-sqs-listener" )
92+ // Need to do it last so that the description is properly set in each of the project's gradle build files
93+ subProject.afterEvaluate {
94+ pom {
95+ name.set(determineModuleName(subProject.name))
96+ description.set(subProject.description)
97+ url.set(" http://github.com/jaidenashmore/java-dynamic-sqs-listener" )
9698
97- licenses {
98- license {
99- name.set(" MIT License" )
100- url.set(" http://www.opensource.org/licenses/mit-license.php" )
99+ licenses {
100+ license {
101+ name.set(" MIT License" )
102+ url.set(" http://www.opensource.org/licenses/mit-license.php" )
103+ }
101104 }
102- }
103105
104- developers {
105- developer {
106- id.set(" jaidenashmore" )
107- name.set(" Jaiden Ashmore" )
108- email.set(" jaidenkyleashmore@gmail.com" )
109- organization {
110- name.set(" jaidenashmore" )
111- url.set(" https://github.com/jaidenashmore" )
106+ developers {
107+ developer {
108+ id.set(" jaidenashmore" )
109+ name.set(" Jaiden Ashmore" )
110+ email.set(" jaidenkyleashmore@gmail.com" )
111+ organization {
112+ name.set(" jaidenashmore" )
113+ url.set(" https://github.com/jaidenashmore" )
114+ }
112115 }
113116 }
114- }
115117
116- scm {
117- connection.set(" scm:git:ssh://git@github.com/jaidenashmore/java-dynamic-sqs-listener.git" )
118- developerConnection.set(" scm:git:ssh://git@github.com/jaidenashmore/java-dynamic-sqs-listener.git" )
119- url.set(" http://github.com/jaidenashmore/java-dynamic-sqs-listener" )
120- tag.set(deploymentTag)
118+ scm {
119+ connection.set(" scm:git:ssh://git@github.com/jaidenashmore/java-dynamic-sqs-listener.git" )
120+ developerConnection.set(" scm:git:ssh://git@github.com/jaidenashmore/java-dynamic-sqs-listener.git" )
121+ url.set(" http://github.com/jaidenashmore/java-dynamic-sqs-listener" )
122+ tag.set(deploymentTag)
123+ }
121124 }
122125 }
123126 }
0 commit comments