GeezerVison is showing github.com — Bump com.diffplug.gradle.spotless from 4.5.1 to 6.0.0 (#2471) · mockito/mockito@2c95eb0
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: build.gradle +3-3Lines changed: 3 additions & 3 deletions | 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. |
|