Fix JarContentTest by adding dependency on jar creating task

Otherwise tests could be run before the final jar was created and stored
to `build/libs`.
This commit is contained in:
Alexander Udalov
2020-03-05 14:35:13 +01:00
parent 505ec072bb
commit f4d53c18a1
@@ -68,6 +68,9 @@ tasks.register<ShadowJar>("shadowJar") {
addArtifact("runtime", this, artifactRef)
}
val test by tasks
test.dependsOn("shadowJar")
sourcesJar {
for (dependency in shadows.dependencies) {
if (dependency is ProjectDependency) {