-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathbuild.gradle
54 lines (43 loc) · 1.29 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
plugins {
id "checkstyle"
id "java"
id "org.springframework.boot" version "3.3.1"
id "io.spring.javaformat" version "$javaFormatVersion"
}
java {
sourceCompatibility "17"
targetCompatibility "17"
}
repositories {
mavenCentral()
}
configurations {
checkstyle {
resolutionStrategy.capabilitiesResolution.withCapability("com.google.collections:google-collections") {
select("com.google.guava:guava:0")
}
}
}
checkstyle {
toolVersion = "10.12.7"
}
dependencies {
annotationProcessor(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES))
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
checkstyle("com.puppycrawl.tools:checkstyle:${checkstyle.toolVersion}")
checkstyle("io.spring.javaformat:spring-javaformat-checkstyle:$javaFormatVersion")
implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES))
implementation("org.springframework:spring-web")
implementation("org.springframework.boot:spring-boot-starter-json")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
tasks.named("test") {
useJUnitPlatform()
}
tasks.named("jar") {
enabled = false
}
tasks.named("bootJar") {
archiveVersion = ""
}