From 5985c55f3ec62d122b802a777dac8c7dc94b4bcb Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Fri, 4 Oct 2024 11:54:31 +0200 Subject: [PATCH] Use Gradle wrapper when invoking checkstyle (#532) --- .../tck/harness/tasks/CheckstyleInvocationTask.groovy | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/tck-build-logic/src/main/groovy/org/graalvm/internal/tck/harness/tasks/CheckstyleInvocationTask.groovy b/tests/tck-build-logic/src/main/groovy/org/graalvm/internal/tck/harness/tasks/CheckstyleInvocationTask.groovy index 8a0f60648..02cb8f4a7 100644 --- a/tests/tck-build-logic/src/main/groovy/org/graalvm/internal/tck/harness/tasks/CheckstyleInvocationTask.groovy +++ b/tests/tck-build-logic/src/main/groovy/org/graalvm/internal/tck/harness/tasks/CheckstyleInvocationTask.groovy @@ -16,8 +16,6 @@ import javax.inject.Inject @SuppressWarnings("unused") abstract class CheckstyleInvocationTask extends AbstractSubprojectTask { - static final CHECKSTYLE_COMMAND = List.of("gradle", "checkstyle") - @Inject CheckstyleInvocationTask(String coordinates) { super(coordinates) @@ -26,7 +24,7 @@ abstract class CheckstyleInvocationTask extends AbstractSubprojectTask { @Override @Input List getCommand() { - CHECKSTYLE_COMMAND + return [tckExtension.repoRoot.get().asFile.toPath().resolve("gradlew").toString(), "checkstyle"] } @Override