Created
October 18, 2019 14:42
-
-
Save antonydenyer/6bc238e1d35e8aa8b5369deec0ca29e7 to your computer and use it in GitHub Desktop.
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
spotless { | |
java { | |
// This path needs to be relative to each project | |
target fileTree('.') { | |
include '**/src/*/java/**/*.java' | |
exclude '**/.gradle/**' | |
exclude '**/generated/**' | |
} | |
removeUnusedImports() | |
googleJavaFormat("1.7").aosp() | |
importOrder 'java', '', 'org.web3j', '\\#' | |
trimTrailingWhitespace() | |
endWithNewline() | |
licenseHeaderFile "$rootDir/gradle/spotless.java.license" | |
} | |
groovyGradle { | |
target '*.gradle' | |
greclipse().configFile(rootProject.file('gradle/formatter.properties')) | |
endWithNewline() | |
indentWithSpaces(4) | |
paddedCell() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment