From 34e1950c9fc0dc56bce45ee62dc4f2a1701e27d9 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Mon, 11 Apr 2022 16:39:12 -0400 Subject: [PATCH] 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`** --- publish-maven.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/publish-maven.gradle b/publish-maven.gradle index 9899e116..9a19567b 100644 --- a/publish-maven.gradle +++ b/publish-maven.gradle @@ -58,5 +58,6 @@ publishing { } artifactoryPublish { + dependsOn build publications(publishing.publications.mavenJava) }