-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
79 lines (70 loc) · 2.54 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
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
java
`java-library`
`maven-publish`
id("signing")
id("org.jetbrains.kotlin.jvm") version "1.9.21"
}
fun properties(key: String) = project.findProperty(key).toString()
group = properties("libraryGroup")
version = properties("libraryVersion")
repositories {
mavenCentral {
metadataSources {
mavenPom()
artifact()
}
}
}
kotlin {
compilerOptions {
javaParameters = true
}
jvmToolchain(17)
}
val jackson_version = "2.15.3"
val jupiter_version = "5.10.1"
val logback_version = "1.4.11"
dependencies {
implementation(group = "com.fasterxml.jackson.core", name = "jackson-databind", version = jackson_version)
implementation(group = "com.fasterxml.jackson.core", name = "jackson-annotations", version = jackson_version)
implementation(group = "com.fasterxml.jackson.module", name = "jackson-module-kotlin", version = jackson_version)
implementation(kotlin("stdlib"))
implementation(group = "commons-io", name = "commons-io", version = "2.15.0")
implementation(group = "org.slf4j", name = "slf4j-api", version = "2.0.9")
testImplementation(group = "ch.qos.logback", name = "logback-classic", version = logback_version)
testImplementation(group = "ch.qos.logback", name = "logback-core", version = logback_version)
testImplementation(group = "org.junit.jupiter", name = "junit-jupiter-api", version = jupiter_version)
testImplementation(group = "org.junit.jupiter", name = "junit-jupiter-params", version = jupiter_version)
testRuntimeOnly(group = "org.junit.jupiter", name = "junit-jupiter-engine", version = jupiter_version)
}
tasks {
compileKotlin {
compilerOptions {
javaParameters = true
}
}
compileTestKotlin {
compilerOptions {
javaParameters = true
}
}
test {
useJUnitPlatform()
systemProperty("surefire.useManifestOnlyJar", "false")
testLogging {
events(TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED)
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
jvmArgs(
"--add-opens", "java.base/java.lang.reflect=ALL-UNNAMED",
"--add-opens", "java.base/java.util=ALL-UNNAMED",
"--add-opens", "java.base/java.lang=ALL-UNNAMED",
"--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED"
)
}
wrapper {
gradleVersion = properties("gradleVersion")
}
}