Added spotless
This commit is contained in:
parent
8b56833e32
commit
8f3c092f80
2 changed files with 13 additions and 0 deletions
|
@ -120,4 +120,13 @@ dependencies {
|
||||||
|
|
||||||
if (firebaseEnabled()) {
|
if (firebaseEnabled()) {
|
||||||
apply plugin: 'com.google.gms.google-services'
|
apply plugin: 'com.google.gms.google-services'
|
||||||
|
}
|
||||||
|
|
||||||
|
apply plugin: "com.diffplug.gradle.spotless"
|
||||||
|
spotless {
|
||||||
|
java {
|
||||||
|
target '**/*.java'
|
||||||
|
googleJavaFormat('1.6').aosp()
|
||||||
|
removeUnusedImports()
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -5,10 +5,14 @@ buildscript {
|
||||||
google()
|
google()
|
||||||
jcenter()
|
jcenter()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
maven {
|
||||||
|
url "https://plugins.gradle.org/m2/"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.2.1'
|
classpath 'com.android.tools.build:gradle:3.2.1'
|
||||||
classpath 'com.google.gms:google-services:3.1.0'
|
classpath 'com.google.gms:google-services:3.1.0'
|
||||||
|
classpath "com.diffplug.spotless:spotless-plugin-gradle:3.16.0"
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
|
Loading…
Reference in a new issue