Skip to content

Commit 2039bd6

Browse files
authored
Fix gradle caching (#2118)
1 parent da9244c commit 2039bd6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

jmx-metrics/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

jmx-scraper/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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}")

0 commit comments

Comments
 (0)