Skip to content

Commit 9f36842

Browse files
committed
fix release publish attempt #4
1 parent 455826b commit 9f36842

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

build.gradle.kts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ nexusPublishing {
3838
}
3939
}
4040

41-
tasks.withType<PublishToMavenRepository> {
42-
doFirst {
43-
println("Publishing ${publication.groupId}:${publication.artifactId}:${publication.version} to ${repository.url}")
44-
}
45-
if (!(version as String).endsWith("SNAPSHOT")) {
46-
finalizedBy(tasks.closeAndReleaseStagingRepository)
41+
subprojects {
42+
tasks.withType<PublishToMavenRepository> {
43+
doFirst {
44+
println("Publishing ${publication.groupId}:${publication.artifactId}:${publication.version} to ${repository.url}")
45+
}
46+
if (!(version as String).endsWith("SNAPSHOT")) {
47+
finalizedBy(tasks.closeAndReleaseStagingRepository)
48+
}
4749
}
4850
}
4951

0 commit comments

Comments
 (0)