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 {
72
72
73
73
withType<Test >().configureEach {
74
74
dependsOn(shadowJar)
75
+ inputs.files(layout.files(shadowJar))
75
76
systemProperty(" shadow.jar.path" , shadowJar.get().archiveFile.get().asFile.absolutePath)
77
+
76
78
systemProperty(" gradle.project.version" , " ${project.version} " )
77
79
}
78
80
Original file line number Diff line number Diff line change @@ -64,14 +64,17 @@ tasks {
64
64
65
65
withType<Test >().configureEach {
66
66
dependsOn(shadowJar)
67
+ inputs.files(layout.files(shadowJar))
67
68
systemProperty(" shadow.jar.path" , shadowJar.get().archiveFile.get().asFile.absolutePath)
68
69
69
70
val testAppTask = project(" test-app" ).tasks.named<Jar >(" jar" )
70
71
dependsOn(testAppTask)
72
+ inputs.files(layout.files(testAppTask))
71
73
systemProperty(" app.jar.path" , testAppTask.get().archiveFile.get().asFile.absolutePath)
72
74
73
75
val testWarTask = project(" test-webapp" ).tasks.named<Jar >(" war" )
74
76
dependsOn(testWarTask)
77
+ inputs.files(layout.files(testWarTask))
75
78
systemProperty(" app.war.path" , testWarTask.get().archiveFile.get().asFile.absolutePath)
76
79
77
80
systemProperty(" gradle.project.version" , " ${project.version} " )
You can’t perform that action at this time.
0 commit comments