-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
47 lines (38 loc) · 1.14 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.21"
kotlin("plugin.serialization") version "1.8.0"
distribution
application
}
group = "com.jaoafa"
version = "1.2.0"
repositories {
mavenCentral()
}
dependencies {
implementation("com.sksamuel.scrimage:scrimage-core:4.0.32")
implementation("com.github.ajalt.mordant:mordant:2.0.0-beta10")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1")
implementation("com.github.ajalt.clikt:clikt:3.5.1")
implementation("com.mysql:mysql-connector-j:8.0.32")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
application {
mainClass.set("MainKt")
}
val `package` = task("package", type = Jar::class) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archiveBaseName.set("DynmapProcessor")
manifest {
attributes["Main-Class"] = "MainKt"
}
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
with(tasks.jar.get() as CopySpec)
}
tasks {
`package`
}