-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
47 lines (36 loc) · 853 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
val kord_version: String by project
plugins {
kotlin("jvm") version "1.9.22"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "live.einfachgustaf"
version = "1.0"
repositories {
mavenCentral()
}
dependencies {
implementation("dev.kord", "kord-core", kord_version)
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}
tasks.shadowJar {
manifest {
attributes["Main-Class"] = "live.einfachgustaf.discord.bot.aprilfool.ApplicationKt";
}
archiveFileName.set("aprilfoolbot.jar")
}
/*
tasks.register<Zip>("createDistribution") {
dependsOn("shadowJar")
archiveFileName.set("aprilfoolbot.zip")
from(file("scripts")) {
include("start.sh")
}
from(file("libs/aprilfoolbot.jar"))
destinationDirectory.set(layout.buildDirectory.dir("distributions"))
}
*/