Skip to content

Commit 2c95eb0

Browse files
Bump com.diffplug.gradle.spotless from 4.5.1 to 6.0.0 (#2471)
1 parent ebc1685 commit 2c95eb0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ buildscript {
2020
}
2121

2222
plugins {
23-
id 'com.diffplug.gradle.spotless' version '4.5.1'
23+
id 'com.diffplug.spotless' version '6.0.0'
2424
id 'eclipse'
2525
id 'com.github.ben-manes.versions' version '0.39.0'
2626
id 'biz.aQute.bnd.builder' version '6.0.0'
@@ -112,13 +112,13 @@ spotless {
112112
java {
113113
licenseHeaderFile rootProject.file('config/spotless/spotless.header')
114114

115-
customLazyGroovy('google-java-format') {
115+
custom 'google-java-format', { source ->
116116
com.google.googlejavaformat.java.JavaFormatterOptions options = new com.google.googlejavaformat.java.JavaFormatterOptions.Builder()
117117
.style(com.google.googlejavaformat.java.JavaFormatterOptions.Style.AOSP)
118118
.formatJavadoc(false)
119119
.build()
120120
com.google.googlejavaformat.java.Formatter formatter = new com.google.googlejavaformat.java.Formatter(options)
121-
return { source -> formatter.formatSource(source) }
121+
return formatter.formatSource(source)
122122
}
123123

124124
// This test contains emulation of same-line stubbings. The formatter would put them on a separate line.

0 commit comments

Comments
 (0)