Skip to content

Commit d04391f

Browse files
committed
Ensure local build artifacts are created
JAVA-5904
1 parent 5caf9ba commit d04391f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

buildSrc/src/main/kotlin/conventions/publishing.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ tasks.register("publishSnapshots") {
122122
description = "Publishes snapshots to Sonatype"
123123

124124
if (version.toString().endsWith("-SNAPSHOT")) {
125+
dependsOn(tasks.named("publishAllPublicationsToLocalBuildRepository"))
125126
dependsOn(tasks.named("publishToSonatype"))
126127
}
127128
}
@@ -149,6 +150,7 @@ tasks.register("publishArchives") {
149150
}
150151
}
151152
if (gitVersionMatch) {
153+
dependsOn(tasks.named("publishAllPublicationsToLocalBuildRepository"))
152154
dependsOn(tasks.named("publishToSonatype"))
153155
}
154156
}

0 commit comments

Comments
 (0)