Skip to content

Commit

Permalink
Added spotless apply to gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
IanTapply22 committed Nov 12, 2023
1 parent 9f248b0 commit 4a5e1ff
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "java"
id 'com.diffplug.spotless' version "6.12.0"
id "edu.wpi.first.GradleRIO" version "2023.4.3"
}

Expand All @@ -8,6 +9,20 @@ targetCompatibility = JavaVersion.VERSION_11

def ROBOT_MAIN_CLASS = "frc.robot.Main"

spotless {
java {
target fileTree('.') {
include '**/*.java'
exclude '**/build/**', '**/build-*/**'
}
toggleOffOn()
googleJavaFormat()
removeUnusedImports()
trimTrailingWhitespace()
endWithNewline()
}
}

// Define my targets (RoboRIO) and artifacts (deployable files)
// This is added by GradleRIO's backing project DeployUtils.
deploy {
Expand Down

0 comments on commit 4a5e1ff

Please sign in to comment.