@@ -107,17 +107,22 @@ model {
107
107
artifactId project. ext. artifactId
108
108
version project. version
109
109
110
+ def projectExtArtifactId = project. ext. artifactId
111
+ def projectDescription = project. description
112
+ def projectOrg = project. org
113
+ def rootProjectName = rootProject. name
114
+
110
115
pom. withXml {
111
116
// add MavenCentral requirements to the POM
112
117
asNode(). children(). last() + {
113
118
resolveStrategy = Closure . DELEGATE_FIRST
114
- name project . ext . artifactId
115
- description project . description
116
- url " https://github.com/${ project.org } /${ rootProject.name } "
119
+ name projectExtArtifactId
120
+ description projectDescription
121
+ url " https://github.com/${ projectOrg } /${ rootProjectName } "
117
122
scm {
118
- url " https://github.com/${ project.org } /${ rootProject.name } "
119
- connection " scm:git:https://github.com/${ project.org } /${ rootProject.name } .git"
120
- developerConnection " scm:git:ssh:git@github.com/${ project.org } /${ rootProject.name } .git"
123
+ url " https://github.com/${ projectOrg } /${ rootProjectName } "
124
+ connection " scm:git:https://github.com/${ projectOrg } /${ rootProjectName } .git"
125
+ developerConnection " scm:git:ssh:git@github.com/${ projectOrg } /${ rootProjectName } .git"
121
126
}
122
127
licenses {
123
128
if (isExt) {
@@ -188,13 +193,12 @@ if (System.env['JITPACK'] == 'true' || version.endsWith('-SNAPSHOT')) {
188
193
dependsOn changelogTasks. named(' changelogCheck' )
189
194
}
190
195
// ensures that changelog bump and push only happens if the publish was successful
191
- def thisProj = project
192
196
changelogTasks. named(' changelogBump' ). configure {
193
- dependsOn " : ${ thisProj .path} :publishPluginMavenPublicationToSonatypeRepository"
197
+ dependsOn project . path + " :publishPluginMavenPublicationToSonatypeRepository"
194
198
dependsOn " :closeAndReleaseSonatypeStagingRepository"
195
199
// if we have a Gradle plugin, we need to push it up to the plugin portal too
196
- if (thisProj . tasks. names. contains(' publishPlugins' )) {
197
- dependsOn thisProj . tasks. named(' publishPlugins' )
200
+ if (project . tasks. names. contains(' publishPlugins' )) {
201
+ dependsOn project . tasks. named(' publishPlugins' )
198
202
}
199
203
}
200
204
}
0 commit comments