@@ -15,7 +15,7 @@ plugins {
1515 // Code formatting; defines targets "spotlessApply" and "spotlessCheck".
1616 // https://github.com/diffplug/spotless/tags ; see tags starting "gradle/"
1717 // Only works on JDK 11+ (even including the plugin crashes Gradle on JDK 8).
18- id ' com.diffplug.spotless' version ' 6.25.0 '
18+ id ' com.diffplug.spotless' version ' 7.0.2 '
1919}
2020
2121// There is another `repositories { ... }` block below; if you change this one, change that one as well.
5151
5252 versions = [
5353 autoValue : ' 1.11.0' ,
54- googleJavaFormat : ' 1.19.2' ,
54+ // NOTE: Google Java Format requires JDK 17 or higher as of version 1.25.0.
55+ googleJavaFormat : ' 1.25.2' ,
5556 lombok : ' 1.18.36' ,
5657 hashmapUtil : ' 0.0.1' ,
5758 reflectionUtil : ' 1.1.4' ,
@@ -256,7 +257,7 @@ allprojects { currentProj ->
256257 target ' *.md' , ' *.tex' , ' .gitignore' , ' Makefile'
257258 targetExclude doNotFormat
258259 // define the steps to apply to those files
259- indentWithSpaces (2 )
260+ leadingTabsToSpaces (2 )
260261 trimTrailingWhitespace()
261262 // endWithNewline() // Don't want to end empty files with a newline
262263 }
@@ -298,9 +299,9 @@ allprojects { currentProj ->
298299 targetExclude doNotFormat
299300 greclipse() // which formatter Spotless should use to format .gradle files.
300301 if (project. hasProperty(' eisopFormatting' )) {
301- indentWithSpaces (4 )
302+ leadingTabsToSpaces (4 )
302303 } else {
303- indentWithSpaces (2 )
304+ leadingTabsToSpaces (2 )
304305 }
305306 trimTrailingWhitespace()
306307 // endWithNewline() // Don't want to end empty files with a newline
@@ -313,7 +314,7 @@ allprojects { currentProj ->
313314 // removes semicolons at the end of lines
314315 removeSemicolons()
315316 greclipse()
316- indentWithSpaces (2 )
317+ leadingTabsToSpaces (2 )
317318 trimTrailingWhitespace()
318319 }
319320 }
0 commit comments