build.gradle 826 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. apply from: './dependencies.gradle'
  2. buildscript {
  3. apply from: './dependencies.gradle'
  4. repositories {
  5. jcenter()
  6. }
  7. dependencies {
  8. classpath 'com.android.tools.build:gradle:' + versions.gradlePlugin
  9. classpath "com.diffplug.spotless:spotless-plugin-gradle:" + versions.spotlessPlugin
  10. }
  11. }
  12. allprojects {
  13. repositories {
  14. jcenter()
  15. }
  16. buildscript {
  17. repositories {
  18. maven { url "https://plugins.gradle.org/m2/" }
  19. }
  20. }
  21. apply plugin: "com.diffplug.gradle.spotless"
  22. spotless {
  23. java {
  24. target "**/*.java"
  25. trimTrailingWhitespace()
  26. removeUnusedImports()
  27. googleJavaFormat()
  28. endWithNewline()
  29. }
  30. }
  31. }
  32. task clean(type: Delete) {
  33. delete rootProject.buildDir
  34. }