-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
62 lines (53 loc) · 1.36 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
59
60
61
62
plugins {
application
kotlin("jvm") version "1.9.22"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "me.duncte123"
version = "0.0.1"
application {
mainClass.set("${project.group}.io.MainKt")
}
repositories {
mavenCentral()
}
dependencies {
implementation(libs.jda)
implementation(libs.logger)
implementation(libs.jackson.core)
implementation(libs.jackson.kotlin)
implementation(libs.jackson.yaml)
implementation(kotlin("scripting-jsr223")) // Dangerous stuff!!
testImplementation("org.jetbrains.kotlin:kotlin-test")
// TODO: cleanup
implementation(group = "com.github.vladimir-bukhtoyarov", name = "bucket4j-core", version = "4.10.0")
implementation(group = "net.jodah", name = "expiringmap", version = "0.5.11")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}
tasks {
compileJava {
// options.compilerArgs.add("--enable-preview")
options.isIncremental = true
}
compileKotlin {
kotlinOptions.jvmTarget = "21"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "21"
}
wrapper {
gradleVersion = "8.5"
distributionType = Wrapper.DistributionType.BIN
}
shadowJar {
archiveClassifier.set("shadow")
manifest {
attributes["Description"] = "Super Hiro > Eduard"
}
}
}