diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f401c5c..4ec295e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,8 +31,8 @@ jobs: uses: actions/setup-java@v1 with: java-version: 1.8 - # - name: lint - # run: ./gradlew spotlessCheck + - name: lint + run: ./gradlew spotlessCheck - name: Test run: ./gradlew test --stacktrace --info build: diff --git a/build.gradle b/build.gradle index 509c8d5..36443b5 100644 --- a/build.gradle +++ b/build.gradle @@ -79,3 +79,12 @@ sourceSets.all { attributes.attribute(Attribute.of("org.gradle.jvm.environment", String), "standard-jvm") } } + +spotless { + java { + importOrder() + removeUnusedImports() + // googleJavaFormat() + toggleOffOn() + } +}