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