Skip to content

Commit b55c990

Browse files
committed
minor test fix
1 parent 3e07c60 commit b55c990

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/groovy/org/beryx/runtime/JreTask.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import groovy.transform.CompileStatic
1919
import org.beryx.runtime.data.JreTaskData
2020
import org.beryx.runtime.data.TargetPlatform
2121
import org.beryx.runtime.impl.JreTaskImpl
22+
import org.gradle.api.GradleException
2223
import org.gradle.api.file.Directory
2324
import org.gradle.api.tasks.Input
2425
import org.gradle.api.tasks.OutputDirectory
@@ -63,8 +64,8 @@ class JreTask extends BaseTask {
6364

6465
JreTask() {
6566
dependsOn('jar')
66-
dependsOn(project.configurations.runtimeClasspath.allDependencies)
6767
description = 'Creates a custom java runtime image with jlink'
68+
dependsOn(project.configurations['runtimeClasspath'].allDependencies)
6869
}
6970

7071
@TaskAction

src/test/groovy/org/beryx/runtime/RuntimePluginSpec.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ class RuntimePluginSpec extends Specification {
8989
imageLauncher.setExecutable(true)
9090
def process = imageLauncher.absolutePath.execute([], imageBinDir)
9191
def out = new ByteArrayOutputStream(2048)
92-
process.waitForProcessOutput(out, out)
92+
def err = new ByteArrayOutputStream(2048)
93+
process.waitForProcessOutput(out, err)
9394
def outputText = out.toString()
9495

9596
then:

0 commit comments

Comments
 (0)