Skip to content

Instantly share code, notes, and snippets.

@antonydenyer
Created October 18, 2019 14:42
Show Gist options
  • Save antonydenyer/6bc238e1d35e8aa8b5369deec0ca29e7 to your computer and use it in GitHub Desktop.
Save antonydenyer/6bc238e1d35e8aa8b5369deec0ca29e7 to your computer and use it in GitHub Desktop.
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