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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user