-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
56 lines (49 loc) · 1.58 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
import java.text.SimpleDateFormat
import java.util.*
plugins {
kotlin("jvm") version "2.0.0"
id("com.gradleup.shadow") version "8.3.0"
application
}
group = "de.griefed"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.17.1")
implementation("io.github.microutils:kotlin-logging:3.0.5")
implementation("org.apache.logging.log4j:log4j-api-kotlin:1.4.0")
implementation("org.apache.logging.log4j:log4j-core:2.23.1")
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}
application {
mainClass = "de.griefed.MainKt"
}
tasks.jar {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
manifest {
attributes(
mapOf(
"Built-By" to System.getProperty("user.name"),
"Build-Timestamp" to SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(Date()),
"Created-By" to "Gradle ${gradle.gradleVersion}",
"Build-Jdk" to "${System.getProperty("java.version")} (${System.getProperty("java.vendor")} ${
System.getProperty("java.vm.version")
})",
"Build-OS" to "${System.getProperty("os.name")} ${System.getProperty("os.arch")} ${
System.getProperty("os.version")
}",
"Implementation-Vendor" to "Griefed",
"Implementation-Version" to project.version,
"Implementation-Title" to project.name
)
)
}
}