-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
52 lines (45 loc) · 1.06 KB
/
build.gradle.kts
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
plugins {
java
alias(libs.plugins.spring.boot)
alias(libs.plugins.spring.dependency.management)
id("jacoco")
}
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
allprojects {
group = property("app.group").toString()
}
dependencyManagement {
imports {
mavenBom(libs.spring.cloud.dependencies.get().toString())
}
}
dependencies {
implementation(libs.spring.boot.starter.web)
compileOnly(libs.lombok)
annotationProcessor(libs.lombok)
annotationProcessor(libs.spring.boot.configuration.processor)
testImplementation(libs.spring.boot.starter.test)
}
// about source and compilation
java {
sourceCompatibility = JavaVersion.VERSION_17
}
with(extensions.getByType(JacocoPluginExtension::class.java)) {
toolVersion = "0.8.7"
}
// bundling tasks
tasks.getByName("bootJar") {
enabled = true
}
tasks.getByName("jar") {
enabled = false
}
// test tasks
tasks.test {
ignoreFailures = true
useJUnitPlatform()
}