-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
60 lines (52 loc) · 1.3 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
53
54
55
56
57
58
59
60
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
java
checkstyle
alias(libs.plugins.springBoot)
alias(libs.plugins.spotbugs)
}
group = "com.danielptv"
version = "2.1.0"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(libs.versions.javaVersion.get()))
}
}
repositories {
mavenCentral()
}
dependencies {
compileOnly(libs.lombok)
annotationProcessor(libs.lombok)
implementation(libs.springShell)
implementation(libs.jline)
implementation(libs.jfiglet)
compileOnly(libs.spotbugsAnnotations)
testImplementation(libs.junitApi)
testImplementation(libs.junitPlatformSuiteApi)
testImplementation(libs.assertj)
testImplementation(libs.springBootTest)
testRuntimeOnly(libs.junitPlatformSuiteEngine)
}
checkstyle {
toolVersion = libs.versions.checkstyle.get()
configFile = file("extras/checkstyle/checkstyle.xml")
setConfigProperties(
"configDir" to "$projectDir/extras/checkstyle",
)
isIgnoreFailures = false
}
spotbugs {
toolVersion.set(libs.versions.spotbugs.get())
}
tasks.spotbugsMain {
reports.create("html") {
required.set(true)
outputLocation.set(file("$buildDir/reports/spotbugs.html"))
}
}
tasks.test {
useJUnitPlatform {
includeTags = setOf("integration", "unit")
}
}