1
0

add spotless

This commit is contained in:
Michael Hoennig
2022-08-04 09:41:27 +02:00
parent 8605d4c4f1
commit a2f2fdb6a4
6 changed files with 65 additions and 9 deletions

View File

@ -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()
}
}