-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
58 lines (45 loc) · 1.15 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.22"
application
java
}
group = "com.bluesmods.bluecordpatcher"
version = "1.0"
repositories {
mavenCentral()
}
dependencies {
implementation("com.beust:jcommander:1.82")
implementation("ch.qos.logback:logback-classic:1.5.0")
implementation("commons-io:commons-io:2.15.1")
implementation("org.ini4j:ini4j:0.5.4")
testImplementation(kotlin("test"))
}
tasks.jar {
archiveFileName.set("BluecordPatcher.jar")
manifest.attributes["Main-Class"] = "com.bluesmods.bluecordpatcher.Main"
dependsOn(configurations.runtimeClasspath)
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
doFirst {
from(configurations.runtimeClasspath.get().map(::zipTree))
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "17"
}
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}
application {
mainClass.set("com.bluesmods.bluecordpatcher.Main")
}