Last active
December 27, 2019 17:58
-
-
Save schroedermatt/115b1be3ec9dbd5e20758ad3f022d0f5 to your computer and use it in GitHub Desktop.
Spotless Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| plugins { | |
| id 'java' | |
| id 'com.diffplug.gradle.spotless' version '3.26.1' | |
| // other plugins | |
| } | |
| repositories { .. } | |
| dependencies { .. } | |
| spotless { | |
| java { | |
| // Enforce Google's Java Style Guide | |
| googleJavaFormat() | |
| } | |
| } | |
| // automatically format code to comply with spotlessJava | |
| build.dependsOn 'spotlessApply' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment