diff --git a/build.gradle b/build.gradle index 0a169a1..7559b26 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { id 'java-library' id 'maven-publish' id "edu.wpi.first.GradleRIO" version "2023.4.3" - id 'com.diffplug.spotless' version '6.12.0' + id 'com.diffplug.spotless' version '6.22.0' id 'com.google.protobuf' version '0.8.19' } @@ -145,7 +145,11 @@ wpi.sim.addDriverstation() // in order to make them all available at runtime. Also adding the manifest so WPILib // knows where to look for our Robot Class. jar { - from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } } + from { + configurations.runtimeClasspath.collect { + it.isDirectory() ? it : zipTree(it) + } + } manifest edu.wpi.first.gradlerio.GradleRIOPlugin.javaManifest(ROBOT_MAIN_CLASS) duplicatesStrategy = DuplicatesStrategy.INCLUDE } @@ -186,7 +190,8 @@ spotless { exclude '**/build/**', '**/build-*/**' } toggleOffOn() - googleJavaFormat() + googleJavaFormat().formatJavadoc(false).aosp() + indentWithSpaces(4) removeUnusedImports() trimTrailingWhitespace() endWithNewline()