add spotless
This commit is contained in:
13
build.gradle
13
build.gradle
@ -1,7 +1,8 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '2.7.2'
|
||||
id 'io.spring.dependency-management' version '1.0.12.RELEASE'
|
||||
id 'java'
|
||||
id "com.diffplug.spotless" version "6.9.0"
|
||||
}
|
||||
|
||||
group = 'net.hostsharing'
|
||||
@ -22,6 +23,8 @@ ext {
|
||||
set('testcontainersVersion', "1.17.3")
|
||||
}
|
||||
|
||||
// wrapper
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-data-rest'
|
||||
@ -55,3 +58,11 @@ dependencyManagement {
|
||||
tasks.named('test') {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
spotless {
|
||||
java {
|
||||
removeUnusedImports()
|
||||
endWithNewline()
|
||||
toggleOffOn()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user