add spotless plugin
This commit is contained in:
parent
80d97c3fcc
commit
5d79cfbf0d
11
build.gradle
11
build.gradle
|
@ -7,10 +7,13 @@ buildscript {
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:7.4.1'
|
classpath 'com.android.tools.build:gradle:7.4.1'
|
||||||
|
classpath "com.diffplug.spotless:spotless-plugin-gradle:6.12.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
apply plugin: "com.diffplug.spotless"
|
||||||
|
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
|
@ -30,6 +33,14 @@ configurations {
|
||||||
quicksyImplementation
|
quicksyImplementation
|
||||||
}
|
}
|
||||||
|
|
||||||
|
spotless {
|
||||||
|
ratchetFrom '2.12.0'
|
||||||
|
java {
|
||||||
|
target '**/*.java'
|
||||||
|
googleJavaFormat('1.8').aosp().reflowLongStrings()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'androidx.viewpager:viewpager:1.0.0'
|
implementation 'androidx.viewpager:viewpager:1.0.0'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue