Skip to content

Commit aff19c2

Browse files
authored
Merge pull request #16 from shueja/bugfix/readd-spotless-apply
reapply pull #11
2 parents f086f29 + ff9c753 commit aff19c2

File tree

12 files changed

+1283
-1288
lines changed

12 files changed

+1283
-1288
lines changed

monologue/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ plugins {
1414
id "maven-publish"
1515
id "java-library"
1616
id "edu.wpi.first.GradleRIO" version "2024.2.1"
17-
id 'com.diffplug.spotless' version '6.21.0' apply false
17+
id 'com.diffplug.spotless' version '6.20.0'
1818
}
1919

2020

@@ -116,6 +116,8 @@ task monologueGenerateClasses() {
116116

117117
sourceSets.main.java.srcDir "${buildDir}/generated/main/java"
118118
compileJava.dependsOn(monologueGenerateClasses)
119+
project.compileJava.dependsOn(spotlessApply)
120+
119121

120122
project.compileJava.dependsOn(spotlessApply)
121123

monologue/format.gradle

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
1-
2-
apply plugin: 'com.diffplug.spotless'
3-
4-
spotless {
5-
enforceCheck = false
6-
java {
7-
target fileTree('.') {
8-
include '**/*.java'
9-
exclude '**/build/**', '**/build-*/**', '**/bin/**'
10-
}
11-
toggleOffOn()
12-
googleJavaFormat()
13-
removeUnusedImports()
14-
trimTrailingWhitespace()
15-
endWithNewline()
16-
}
17-
groovyGradle {
18-
target fileTree('.') {
19-
include '**/*.gradle'
20-
exclude '**/build/**', '**/build-*/**', '**/bin/**'
21-
}
22-
greclipse()
23-
indentWithSpaces(4)
24-
trimTrailingWhitespace()
25-
endWithNewline()
26-
}
27-
json {
28-
target fileTree('.') {
29-
include '**/*.json'
30-
exclude '**/build/**', '**/build-*/**', '**/bin/**', '**/.vscode/**'
31-
exclude '**/simgui-ds.json', '**/simgui-window.json', '**/simgui.json', '**/networktables.json'
32-
}
33-
gson()
34-
.indentWithSpaces(2)
35-
}
36-
format 'xml', {
37-
target fileTree('.') {
38-
include '**/*.xml'
39-
exclude '**/build/**', '**/build-*/**', '**/bin/**'
40-
}
41-
eclipseWtp('xml')
42-
trimTrailingWhitespace()
43-
indentWithSpaces(2)
44-
endWithNewline()
45-
}
46-
format 'misc', {
47-
target fileTree('.') {
48-
include '**/*.md', '**/.gitignore'
49-
exclude '**/build/**', '**/build-*/**', '**/bin/**'
50-
}
51-
trimTrailingWhitespace()
52-
indentWithSpaces(2)
53-
endWithNewline()
54-
}
55-
}
1+
2+
apply plugin: 'com.diffplug.spotless'
3+
4+
spotless {
5+
enforceCheck = false
6+
java {
7+
target fileTree('.') {
8+
include '**/*.java'
9+
exclude '**/build/**', '**/build-*/**', '**/bin/**'
10+
}
11+
toggleOffOn()
12+
googleJavaFormat()
13+
removeUnusedImports()
14+
trimTrailingWhitespace()
15+
endWithNewline()
16+
}
17+
groovyGradle {
18+
target fileTree('.') {
19+
include '**/*.gradle'
20+
exclude '**/build/**', '**/build-*/**', '**/bin/**'
21+
}
22+
greclipse()
23+
indentWithSpaces(4)
24+
trimTrailingWhitespace()
25+
endWithNewline()
26+
}
27+
json {
28+
target fileTree('.') {
29+
include '**/*.json'
30+
exclude '**/build/**', '**/build-*/**', '**/bin/**', '**/.vscode/**'
31+
exclude '**/simgui-ds.json', '**/simgui-window.json', '**/simgui.json', '**/networktables.json'
32+
}
33+
gson()
34+
.indentWithSpaces(2)
35+
}
36+
format 'xml', {
37+
target fileTree('.') {
38+
include '**/*.xml'
39+
exclude '**/build/**', '**/build-*/**', '**/bin/**'
40+
}
41+
eclipseWtp('xml')
42+
trimTrailingWhitespace()
43+
indentWithSpaces(2)
44+
endWithNewline()
45+
}
46+
format 'misc', {
47+
target fileTree('.') {
48+
include '**/*.md', '**/.gitignore'
49+
exclude '**/build/**', '**/build-*/**', '**/bin/**'
50+
}
51+
trimTrailingWhitespace()
52+
indentWithSpaces(2)
53+
endWithNewline()
54+
}
55+
}

0 commit comments

Comments
 (0)