-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
50 lines (39 loc) · 998 Bytes
/
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
plugins {
kotlin("jvm") version "2.0.0"
id("com.github.johnrengelman.shadow") version "8.+"
kotlin("plugin.serialization") version "2.0.0"
}
group = "org.cubewhy.patch"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("org.ow2.asm:asm:9.4")
implementation("org.apache.logging.log4j:log4j-core:2.23.1")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1")
}
kotlin {
jvmToolchain(17)
}
tasks.shadowJar {
archiveClassifier.set("exec")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
exclude("native-binaries/**")
exclude("LICENSE.txt")
exclude("META-INF/maven/**")
exclude("META-INF/versions/**")
exclude("org/junit/**")
}
tasks.jar {
archiveClassifier.set("library")
dependsOn("shadowJar")
manifest {
attributes(
"Main-Class" to "org.cubewhy.patch.MainKt",
)
attributes(
"Charset" to "UTF-8"
)
}
}