-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
62 lines (53 loc) · 1.51 KB
/
build.gradle.kts
File metadata and controls
62 lines (53 loc) · 1.51 KB
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
@file:Suppress("UnstableApiUsage")
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
kotlin("jvm")
id("com.gradleup.shadow") version "9.3.1"
application
}
repositories {
mavenCentral()
}
dependencies {
implementation(project(":core"))
implementation(platform("org.slf4j:slf4j-bom:2.0.17"))
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.20.1")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.20.1")
implementation("org.apache.commons:commons-text:1.15.0")
implementation("com.palantir.javapoet:javapoet:0.11.0")
implementation("org.slf4j:slf4j-api")
implementation("org.slf4j:slf4j-simple")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(23))
}
}
testing {
suites {
val test by getting(JvmTestSuite::class) {
useKotlinTest("2.1.21")
}
}
}
tasks.withType<Test> {
testLogging {
events = TestLogEvent.values().toSet() - TestLogEvent.STARTED
exceptionFormat = TestExceptionFormat.FULL
}
outputs.upToDateWhen { false }
}
tasks.withType<Jar>().configureEach {
manifest {
attributes("Enable-Native-Access" to "ALL-UNNAMED")
}
}
application {
mainClass = "vipsffm.MainKt"
applicationDefaultJvmArgs = listOf(
"--enable-preview",
"--enable-native-access=ALL-UNNAMED"
)
tasks.run.get().workingDir = rootProject.projectDir
}