Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump com.diffplug.gradle.spotless from 4.5.1 to 6.0.0 #2471

Merged
merged 3 commits into from Nov 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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