-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
61 lines (49 loc) · 1.44 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
plugins {
id("java")
id("checkstyle-conventions")
id("spotbugs-conventions")
id("errorprone-conventions")
id("test-conventions")
id("publish-conventions")
}
group = "dev.eidentification"
version = "0.15.0"
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
repositories {
mavenCentral()
}
dependencies {
implementation(libs.jackson.core.databind)
implementation(libs.jspecify)
testImplementation(libs.junit.jupiter.api)
testImplementation(libs.junit.jupiter.params)
testImplementation(libs.mockito.jupiter)
testImplementation(libs.mockito.inline)
testRuntimeOnly(libs.junit.jupiter.engine)
}
tasks {
javadoc {
options {
// Suppress the warnings
(this as CoreJavadocOptions).addStringOption("Xdoclint:none", "-quiet")
}
}
}
tasks.withType<Javadoc>().configureEach {
setDestinationDir(layout.projectDirectory.file("docs/").asFile)
}
tasks.register("code-quality") {
description = "Run Checkstyle, SpotBugs and ErrorProne analysis on both main and test classes"
group = "code-quality"
dependsOn(tasks.named("checkstyle").get())
dependsOn(tasks.named("spotbugs").get())
dependsOn(tasks.named("errorProne").get()) // Only on main classes
}
tasks.register("cq") {
description = "Alias for code-quality"
group = "code-quality"
dependsOn(tasks.named("code-quality").get())
}