Merge branch 'feature/release-4.1-auto-format-code' into feature/release-4.1
This commit is contained in:
commit
9c29567b88
2 changed files with 15 additions and 1 deletions
|
@ -121,4 +121,14 @@ dependencies {
|
|||
}
|
||||
if (firebaseEnabled()) {
|
||||
apply plugin: 'com.google.gms.google-services'
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: "com.diffplug.gradle.spotless"
|
||||
spotless {
|
||||
java {
|
||||
target '**/*.java'
|
||||
googleJavaFormat('1.6').aosp()
|
||||
removeUnusedImports()
|
||||
}
|
||||
}
|
||||
project.tasks['preBuild'].dependsOn 'spotlessApply'
|
||||
|
|
|
@ -5,10 +5,14 @@ buildscript {
|
|||
google()
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
maven {
|
||||
url "https://plugins.gradle.org/m2/"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.2.1'
|
||||
classpath 'com.google.gms:google-services:3.2.0'
|
||||
classpath "com.diffplug.spotless:spotless-plugin-gradle:3.16.0"
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
|
Loading…
Reference in a new issue