-
Notifications
You must be signed in to change notification settings - Fork 451
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
108 lines (96 loc) · 3.88 KB
/
build.gradle.kts
File metadata and controls
108 lines (96 loc) · 3.88 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
plugins {
id("java")
id("pmd")
id("eclipse")
alias(libs.plugins.gradle.versions)
alias(libs.plugins.spotless).apply(false)
}
tasks.named<Wrapper>("wrapper") {
distributionType = Wrapper.DistributionType.ALL
}
subprojects {
apply(plugin = "checkstyle")
apply(plugin = "jacoco")
apply(plugin = "java")
apply(plugin = "pmd")
dependencies {
implementation(rootProject.libs.jlayer) {
exclude(group = "junit", module = "junit")
}
compileOnly(rootProject.libs.lombok)
annotationProcessor(rootProject.libs.lombok)
testCompileOnly(rootProject.libs.lombok)
testAnnotationProcessor(rootProject.libs.lombok)
implementation(rootProject.libs.logback.classic)
implementation(rootProject.libs.caffeine)
implementation(rootProject.libs.gson)
implementation(rootProject.libs.guava)
implementation(rootProject.libs.dropwizard.websockets)
implementation(rootProject.libs.jakarta.mail)
implementation(rootProject.libs.jaxb.impl)
implementation(rootProject.libs.commons.io)
implementation(rootProject.libs.feign.gson)
implementation(rootProject.libs.commons.math3)
implementation(rootProject.libs.commons.text)
implementation(rootProject.libs.apache.httpmime)
implementation(rootProject.libs.java.websocket)
implementation(rootProject.libs.jetbrains.annotations)
implementation(rootProject.libs.xchart)
implementation(rootProject.libs.radiance.substance)
implementation(rootProject.libs.snakeyaml.engine)
testImplementation(rootProject.libs.jackson.datatype.jsr310)
testImplementation(rootProject.libs.hamcrest.optional)
testImplementation(rootProject.libs.wiremock)
testImplementation(rootProject.libs.equals.verifier)
testImplementation(rootProject.libs.assertj.core)
testImplementation(rootProject.libs.awaitility)
testImplementation(rootProject.libs.hamcrest)
testImplementation(rootProject.libs.bundles.junit)
testImplementation(rootProject.libs.bundles.mockito)
testImplementation(rootProject.libs.sonatype.goodies.prefs)
testImplementation(rootProject.libs.bundles.xmlunit)
testImplementation(rootProject.libs.wiremock.junit5)
testRuntimeOnly(rootProject.libs.junit.jupiter.engine)
testRuntimeOnly(rootProject.libs.junit.platform.launcher)
}
tasks.withType<JavaCompile>().configureEach {
options.compilerArgs.add("-Xlint:none,-processing")
options.encoding = "UTF-8"
options.setIncremental(true)
}
tasks.withType<Test>().configureEach {
useJUnitPlatform() {}
testLogging {
setExceptionFormat("full")
events("standardOut", "standardError", "skipped", "failed")
}
}
extensions.getByType<CheckstyleExtension>().apply {
toolVersion = rootProject.libs.versions.checkstyle.get()
configFile = rootProject.file(".build/checkstyle.xml")
configProperties = mapOf("samedir" to configFile.parent)
}
tasks.named("checkstyleMain", Checkstyle::class.java) {
maxWarnings = 0
source(sourceSets.main.get().output.resourcesDir)
}
tasks.named("checkstyleTest", Checkstyle::class.java) {
maxWarnings = 0
source(sourceSets.test.get().output.resourcesDir)
exclude("**/map-xmls/*.xml")
}
tasks.named("jacocoTestReport", JacocoReport::class.java) {
reports {
xml.required = true
xml.outputLocation = project.layout.buildDirectory.file("jacoco.xml")
html.required = true
}
}
pmd {
setConsoleOutput(true)
ruleSetFiles = files(rootProject.file(".build/pmd.xml"))
ruleSets = listOf()
incrementalAnalysis = true
toolVersion = rootProject.libs.versions.pmd.get()
}
}