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`**
This commit is contained in:
Gary Russell
2022-04-11 16:39:12 -04:00
parent fe74dbf564
commit 34e1950c9f

View File

@@ -58,5 +58,6 @@ publishing {
}
artifactoryPublish {
dependsOn build
publications(publishing.publications.mavenJava)
}