-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
build.gradle
42 lines (34 loc) · 1016 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import org.gradle.api.tasks.testing.logging.TestLogEvent
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("com.diffplug.spotless:spotless-plugin-gradle:${Version.SPOTLESS}")
classpath("org.springframework.boot:spring-boot-gradle-plugin:${Version.SPRING_BOOT}")
}
}
subprojects { Project project ->
apply plugin: 'com.diffplug.spotless'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'java'
sourceCompatibility = 17
targetCompatibility = 17
dependencyManagement {
imports { mavenBom("org.springframework.boot:spring-boot-dependencies:${Version.SPRING_BOOT}") }
}
repositories {
mavenCentral()
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
testLogging {
events TestLogEvent.FAILED, TestLogEvent.PASSED, TestLogEvent.SKIPPED
}
}
spotless {
java {
eclipse().configFile('../format.xml')
}
}
}