Skip to content

Commit

Permalink
Use Gradle wrapper when invoking checkstyle (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhalbritter authored Oct 4, 2024
1 parent 4141a4d commit 5985c55
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -26,7 +24,7 @@ abstract class CheckstyleInvocationTask extends AbstractSubprojectTask {
@Override
@Input
List<String> getCommand() {
CHECKSTYLE_COMMAND
return [tckExtension.repoRoot.get().asFile.toPath().resolve("gradlew").toString(), "checkstyle"]
}

@Override
Expand Down

0 comments on commit 5985c55

Please sign in to comment.