-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathbuild.gradle.kts
61 lines (50 loc) · 1.53 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 {
java
application
eclipse
alias(libs.plugins.versions)
alias(libs.plugins.version.catalog.update)
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
group = "com.kousenit"
version = "1.0"
application {
mainClass.set("com.kousenit.fileio.ProcessDictionary")
}
repositories {
mavenCentral()
}
dependencies {
// JSON parsers
implementation(libs.gson)
implementation(libs.bundles.jackson)
// Logging
implementation(libs.slf4j.nop)
// Testing
testImplementation(libs.junit.jupiter)
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation(libs.assertj)
testImplementation(libs.bundles.mockito)
testImplementation(libs.wiremock)
testImplementation("com.jayway.jsonpath:json-path:2.9.0")
// Make vulnerability issues go away
testImplementation("commons-io:commons-io:2.17.0")
// testImplementation("org.eclipse.jetty:jetty-http:12.0.15")
// testImplementation("org.eclipse.jetty:jetty-server:12.0.15")
}
//tasks.withType<JavaCompile>().configureEach {
// options.compilerArgs.add("--enable-preview")
//}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
// jvmArgs("--enable-preview", "-XX:+EnableDynamicAgentLoading", "-Xshare:off")
jvmArgs("-XX:+EnableDynamicAgentLoading", "-Xshare:off")
}
tasks.withType<JavaExec>().configureEach {
// jvmArgs("--enable-preview", "-XX:+EnableDynamicAgentLoading", "-Xshare:off")
jvmArgs("-XX:+EnableDynamicAgentLoading", "-Xshare:off")
}