Skip to content

Commit

Permalink
Bump com.diffplug.gradle.spotless from 4.5.1 to 6.0.0 (#2471)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] committed Nov 19, 2021
1 parent ebc1685 commit 2c95eb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Expand Up @@ -20,7 +20,7 @@ buildscript {
}

plugins {
id 'com.diffplug.gradle.spotless' version '4.5.1'
id 'com.diffplug.spotless' version '6.0.0'
id 'eclipse'
id 'com.github.ben-manes.versions' version '0.39.0'
id 'biz.aQute.bnd.builder' version '6.0.0'
Expand Down Expand Up @@ -112,13 +112,13 @@ spotless {
java {
licenseHeaderFile rootProject.file('config/spotless/spotless.header')

customLazyGroovy('google-java-format') {
custom 'google-java-format', { source ->
com.google.googlejavaformat.java.JavaFormatterOptions options = new com.google.googlejavaformat.java.JavaFormatterOptions.Builder()
.style(com.google.googlejavaformat.java.JavaFormatterOptions.Style.AOSP)
.formatJavadoc(false)
.build()
com.google.googlejavaformat.java.Formatter formatter = new com.google.googlejavaformat.java.Formatter(options)
return { source -> formatter.formatSource(source) }
return formatter.formatSource(source)
}

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

0 comments on commit 2c95eb0

Please sign in to comment.