diff --git a/gradle-baseline-java-config/resources/checkstyle/checkstyle.xml b/gradle-baseline-java-config/resources/checkstyle/checkstyle.xml index 932fe8d6b..28e9bfa62 100644 --- a/gradle-baseline-java-config/resources/checkstyle/checkstyle.xml +++ b/gradle-baseline-java-config/resources/checkstyle/checkstyle.xml @@ -40,7 +40,7 @@ - + diff --git a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineCheckstyle.groovy b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineCheckstyle.groovy index 2d0e48b26..fbcd3f032 100644 --- a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineCheckstyle.groovy +++ b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineCheckstyle.groovy @@ -54,9 +54,10 @@ class BaselineCheckstyle extends AbstractBaselinePlugin { def configureCheckstyle() { project.logger.debug("Baseline: Configuring Checkstyle tasks") + def baselineConfigDir = configDir // Configure checkstyle project.checkstyle { - configDir = project.file("${configDir}/checkstyle") + configDir = project.file("${baselineConfigDir}/checkstyle") } // Set custom source rules for checkstyleMain task.