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)
|
addArtifact("runtime", this, artifactRef)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val test by tasks
|
||||||
|
test.dependsOn("shadowJar")
|
||||||
|
|
||||||
sourcesJar {
|
sourcesJar {
|
||||||
for (dependency in shadows.dependencies) {
|
for (dependency in shadows.dependencies) {
|
||||||
if (dependency is ProjectDependency) {
|
if (dependency is ProjectDependency) {
|
||||||
|
|||||||
Reference in New Issue
Block a user