spotless.gradle 386 B

12345678910111213141516
  1. apply plugin: "com.diffplug.gradle.spotless"
  2. spotless {
  3. java {
  4. target "**/*.java"
  5. trimTrailingWhitespace()
  6. removeUnusedImports()
  7. googleJavaFormat()
  8. endWithNewline()
  9. }
  10. kotlin {
  11. ktlint().userData(['indent_size': '2', 'continuation_indent_size': '2'])
  12. licenseHeader '/* Licensed under Apache-2.0 */'
  13. trimTrailingWhitespace()
  14. endWithNewline()
  15. }
  16. }