Last active
August 9, 2022 07:43
-
-
Save vanduc1102/2cc0563c6c1e181c81a4dba5829c166e to your computer and use it in GitHub Desktop.
google code format with spotless
This file contains 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
<plugin> | |
<groupId>com.diffplug.spotless</groupId> | |
<artifactId>spotless-maven-plugin</artifactId> | |
<version>2.24.0</version> | |
<configuration> | |
<formats> | |
<format> | |
<includes> | |
<include>*.md</include> | |
<include>.gitignore</include> | |
</includes> | |
<trimTrailingWhitespace/> | |
<endWithNewline/> | |
</format> | |
</formats> | |
<java> | |
<importOrder/> | |
<removeUnusedImports/> | |
<googleJavaFormat> | |
<version>1.15.0</version> | |
<style>GOOGLE</style> | |
<reflowLongStrings>true</reflowLongStrings> | |
</googleJavaFormat> | |
</java> | |
</configuration> | |
</plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/google/google-java-format#intellij-android-studio-and-other-jetbrains-ides