format using eclipse
This commit is contained in:
11
build.gradle
11
build.gradle
@@ -1,5 +1,6 @@
|
||||
plugins {
|
||||
id 'fabric-loom' version '1.2-SNAPSHOT'
|
||||
id 'com.diffplug.spotless' version '6.19.0'
|
||||
}
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
@@ -38,3 +39,13 @@ tasks.withType(JavaCompile).configureEach {
|
||||
it.options.encoding = "UTF-8"
|
||||
it.options.release = 17
|
||||
}
|
||||
|
||||
spotless {
|
||||
java {
|
||||
importOrder()
|
||||
removeUnusedImports()
|
||||
cleanthat()
|
||||
eclipse()
|
||||
formatAnnotations()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user