123456789101112131415161718192021222324252627282930313233343536373839 |
- apply from: './dependencies.gradle'
- buildscript {
- apply from: './dependencies.gradle'
- repositories {
- jcenter()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:' + versions.gradlePlugin
- classpath "com.diffplug.spotless:spotless-plugin-gradle:" + versions.spotlessPlugin
- }
- }
- allprojects {
- repositories {
- jcenter()
- }
- buildscript {
- repositories {
- maven { url "https://plugins.gradle.org/m2/" }
- }
- }
- apply plugin: "com.diffplug.gradle.spotless"
- spotless {
- java {
- target "**/*.java"
- trimTrailingWhitespace()
- removeUnusedImports()
- googleJavaFormat()
- endWithNewline()
- }
- }
- }
- task clean(type: Delete) {
- delete rootProject.buildDir
- }
|