Replace spotless for Java with kotlinter

This commit is contained in:
Niko Diamadis
2023-01-13 00:03:28 +01:00
parent fc0825de3d
commit a8a0cecce0

View File

@@ -1,8 +1,8 @@
plugins { plugins {
id "com.diffplug.spotless" version "6.11.0" id 'com.android.application'
id 'kotlin-android' id 'kotlin-android'
id 'org.jmailen.kotlinter' version '3.13.0'
} }
apply plugin: 'com.android.application'
android { android {
namespace "com.github.gotify" namespace "com.github.gotify"
@@ -83,12 +83,3 @@ configurations {
exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel-ktx' exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel-ktx'
} }
} }
spotless {
java {
target '**/*.java'
googleJavaFormat().aosp()
removeUnusedImports()
importOrder('', 'static *')
}
}