-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.gradle.kts
82 lines (74 loc) · 2.18 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
plugins {
java
jacoco
alias(libs.plugins.sonarqube)
}
repositories {
gradlePluginPortal()
}
subprojects {
apply(plugin = "java")
apply(plugin = "jacoco")
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
sourceSets {
main {
java.srcDir("main")
}
test {
java.srcDir("test")
}
}
repositories {
mavenCentral()
}
dependencies {
implementation(rootProject.libs.commons.lang3)
compileOnly(rootProject.libs.lombok)
annotationProcessor(rootProject.libs.lombok)
testImplementation(rootProject.libs.mockito.inline)
testImplementation(rootProject.libs.junit.jupiter)
testImplementation(rootProject.libs.awaitility)
testRuntimeOnly(rootProject.libs.junit.platform.launcher)
}
tasks {
compileJava {
options.encoding = "UTF-8"
}
compileTestJava {
options.encoding = "UTF-8"
}
test {
useJUnitPlatform()
testLogging {
events("FAILED", "SKIPPED")
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
showExceptions = true
showStackTraces = false
}
reports {
junitXml.required = false
html.required = false
}
}
jacocoTestReport {
reports {
xml.required = true
html.required = false
}
}
}
}
sonarqube {
properties {
property("sonar.issue.ignore.multicriteria", "fc31,iv22")
// Code Smell [minor]: The default unnamed package should not be used
property("sonar.issue.ignore.multicriteria.fc31.ruleKey", "java:S1220")
property("sonar.issue.ignore.multicriteria.fc31.resourceKey", "**/*.java")
// Code Smell [major]: Ternary operators should not be nested
property("sonar.issue.ignore.multicriteria.iv22.ruleKey", "java:S3358")
property("sonar.issue.ignore.multicriteria.iv22.resourceKey", "**/*.java")
}
}