This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
92 lines (80 loc) · 2.87 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
83
84
85
86
87
88
89
90
91
92
import org.gradle.kotlin.dsl.internal.sharedruntime.codegen.sourceNameOfBinaryName
plugins {
java
id("io.quarkus")
id("com.diffplug.spotless") version "6.25.0"
id("com.github.spotbugs") version "6.0.15"
id("org.checkerframework") version "0.6.40"
}
repositories {
mavenCentral()
mavenLocal()
}
val quarkusPlatformGroupId: String by project
val quarkusPlatformArtifactId: String by project
val quarkusPlatformVersion: String by project
dependencies {
implementation(enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}"))
implementation("io.quarkus:quarkus-rest")
implementation("io.quarkus:quarkus-rest-jackson")
implementation("io.quarkus:quarkus-arc")
implementation("io.quarkus:quarkus-smallrye-openapi")
implementation("io.quarkus:quarkus-smallrye-health")
implementation("org.glassfish.jaxb:jaxb-runtime:4.0.5")
implementation("com.helger.commons:ph-commons:11.1.6")
implementation("com.helger.schematron:ph-schematron-api:7.1.0")
implementation("com.helger.schematron:ph-schematron-xslt:8.0.0")
testImplementation("io.quarkus:quarkus-junit5")
testImplementation("io.rest-assured:rest-assured")
testImplementation("org.hamcrest:hamcrest:2.2")
}
group = "io.github.bolzer"
version = ""
java {
sourceCompatibility = JavaVersion.VERSION_19
targetCompatibility = JavaVersion.VERSION_19
}
spotbugs {
ignoreFailures = false
showProgress = false
}
spotless {
java {
importOrder()
prettier(mapOf(
"prettier" to "2.8.8",
"prettier-plugin-java" to "2.2.0"
)).config(mapOf(
"parser" to "java",
"tabWidth" to 4,
))
removeUnusedImports()
}
}
checkerFramework {
excludeTests = true
suppressLombokWarnings = false
checkers = listOf(
"org.checkerframework.checker.nullness.NullnessChecker",
"org.checkerframework.checker.units.UnitsChecker",
"org.checkerframework.checker.interning.InterningChecker",
"org.checkerframework.checker.index.IndexChecker",
"org.checkerframework.checker.calledmethods.CalledMethodsChecker",
"org.checkerframework.checker.resourceleak.ResourceLeakChecker",
"org.checkerframework.checker.tainting.TaintingChecker",
"org.checkerframework.checker.formatter.FormatterChecker",
"org.checkerframework.checker.propkey.PropertyKeyChecker",
"org.checkerframework.framework.util.PurityChecker",
"org.checkerframework.common.value.ValueChecker",
)
extraJavacArgs = listOf(
"-AsuppressWarnings=type.anno.before.decl.anno,type.anno.before.modifier"
)
}
tasks.withType<Test> {
systemProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.add("-parameters")
}