-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
86 lines (74 loc) · 2.47 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
plugins {
java
id("io.quarkus") version "3.16.1"
id("com.diffplug.spotless") version "6.25.0"
id("com.github.spotbugs") version "6.0.15"
id("org.checkerframework") version "0.6.44"
}
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 ("com.github.albfernandez:juniversalchardet:2.4.0")
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")
implementation("io.quarkus:quarkus-arc")
implementation("com.bugsnag:bugsnag:3.+")
testImplementation("io.quarkus:quarkus-junit5")
testImplementation("io.rest-assured:rest-assured")
testImplementation("org.hamcrest:hamcrest:2.2")
}
group = "io.github.easybill"
version = ""
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
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.resourceleak.ResourceLeakChecker",
"org.checkerframework.checker.formatter.FormatterChecker",
)
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")
}