Skip to content

Commit 21a5ada

Browse files
committed
Make artifactoryPublish dependsOn build
Turns out Gradle 7 can run independent tasks in parallel. * Make an `artifactoryPublish` dependent on `build` task to ensure that tests are performed before artifacts are published to the repository **Cherry-pick to `2.9.x` & `2.8.x`**
1 parent 4915d6f commit 21a5ada

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

publish-maven.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,6 @@ publishing {
5858
}
5959

6060
artifactoryPublish {
61+
dependsOn build
6162
publications(publishing.publications.mavenJava)
6263
}

0 commit comments

Comments
 (0)