diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 752eb0e107..fb1156afbd 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -14,6 +14,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 - name: Grant execute permission run: chmod +x gradlew - name: Format robot code diff --git a/build.gradle b/build.gradle index 1da22ecd7b..82ff932edd 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ import groovy.json.JsonSlurper plugins { id "java" id "edu.wpi.first.GradleRIO" version "2026.2.1" - id "com.diffplug.spotless" version "6.25.0" + id "com.diffplug.spotless" version "8.8.0" } java { @@ -223,7 +223,7 @@ spotless { } removeUnusedImports() trimTrailingWhitespace() - eclipse().configFile("codestyle.xml") +// eclipse().configFile("codestyle.xml") formatAnnotations() } groovyGradle { @@ -231,8 +231,8 @@ spotless { include "**/*.gradle" exclude "**/build/**", "**/build-*/**" } - greclipse() - indentWithTabs(4) +// greclipse() + leadingSpacesToTabs(4) trimTrailingWhitespace() } } \ No newline at end of file