Skip to content

Commit 517ae4a

Browse files
Rerun test if jre changes
again...
1 parent 51efcb4 commit 517ae4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ tasks.withType(JavaCompile).configureEach {
5454

5555
test {
5656
dependsOn jre
57+
inputs.dir tasks.jre.jreDir
5758

5859
def file = DefaultNativePlatform.currentOperatingSystem.isWindows() ? 'java.exe' : 'java'
59-
executable = layout.buildDirectory.file('jre/bin/' + file).get()
60+
executable = tasks.jre.jreDir.file('bin/' + file)
6061

6162
useJUnitPlatform()
6263
finalizedBy jacocoTestReport

0 commit comments

Comments
 (0)