File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ buildscript {
20
20
}
21
21
22
22
plugins {
23
- id ' com.diffplug.gradle. spotless' version ' 4.5.1 '
23
+ id ' com.diffplug.spotless' version ' 6.0.0 '
24
24
id ' eclipse'
25
25
id ' com.github.ben-manes.versions' version ' 0.39.0'
26
26
id ' biz.aQute.bnd.builder' version ' 6.0.0'
@@ -112,13 +112,13 @@ spotless {
112
112
java {
113
113
licenseHeaderFile rootProject. file(' config/spotless/spotless.header' )
114
114
115
- customLazyGroovy( ' google-java-format' ) {
115
+ custom ' google-java-format' , { source ->
116
116
com.google.googlejavaformat.java.JavaFormatterOptions options = new com.google.googlejavaformat.java.JavaFormatterOptions.Builder ()
117
117
.style(com.google.googlejavaformat.java.JavaFormatterOptions.Style . AOSP )
118
118
.formatJavadoc(false )
119
119
.build()
120
120
com.google.googlejavaformat.java.Formatter formatter = new com.google.googlejavaformat.java.Formatter (options)
121
- return { source -> formatter. formatSource(source) }
121
+ return formatter. formatSource(source)
122
122
}
123
123
124
124
// This test contains emulation of same-line stubbings. The formatter would put them on a separate line.
You can’t perform that action at this time.
0 commit comments