File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,9 @@ tasks {
7272
7373 withType<Test >().configureEach {
7474 dependsOn(shadowJar)
75+ inputs.files(layout.files(shadowJar))
7576 systemProperty(" shadow.jar.path" , shadowJar.get().archiveFile.get().asFile.absolutePath)
77+
7678 systemProperty(" gradle.project.version" , " ${project.version} " )
7779 }
7880
Original file line number Diff line number Diff line change @@ -64,14 +64,17 @@ tasks {
6464
6565 withType<Test >().configureEach {
6666 dependsOn(shadowJar)
67+ inputs.files(layout.files(shadowJar))
6768 systemProperty(" shadow.jar.path" , shadowJar.get().archiveFile.get().asFile.absolutePath)
6869
6970 val testAppTask = project(" test-app" ).tasks.named<Jar >(" jar" )
7071 dependsOn(testAppTask)
72+ inputs.files(layout.files(testAppTask))
7173 systemProperty(" app.jar.path" , testAppTask.get().archiveFile.get().asFile.absolutePath)
7274
7375 val testWarTask = project(" test-webapp" ).tasks.named<Jar >(" war" )
7476 dependsOn(testWarTask)
77+ inputs.files(layout.files(testWarTask))
7578 systemProperty(" app.war.path" , testWarTask.get().archiveFile.get().asFile.absolutePath)
7679
7780 systemProperty(" gradle.project.version" , " ${project.version} " )
You can’t perform that action at this time.
0 commit comments