Skip to content

Commit fa37df0

Browse files
committed
log publication GAV in doLast {} - for some weird reason doLast {} shows the group as 'publishing'
1 parent 07ab9a2 commit fa37df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildSrc/src/main/kotlin/buildsrc/convention/maven-publish.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ tasks.withType<AbstractPublishToMaven>().configureEach {
160160
tasks.withType<AbstractPublishToMaven>().configureEach {
161161
val publicationGAV = provider { publication?.run { "$group:$artifactId:$version" } }
162162
inputs.property("publicationGAV", publicationGAV).optional(true)
163-
doFirst("log publication GAV") {
163+
doLast("log publication GAV") {
164164
if (publicationGAV.isPresent) {
165165
logger.lifecycle("[task: ${path}] ${publicationGAV.get()}")
166166
}

0 commit comments

Comments
 (0)