add spotless plugin

This commit is contained in:
Daniel Gultsch 2023-01-10 10:55:38 +01:00
parent 80d97c3fcc
commit 5d79cfbf0d
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -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'