-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
51 lines (43 loc) · 1.1 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
plugins {
id("java")
application
id("org.jetbrains.kotlin.jvm") version("1.9.0")
id("com.github.johnrengelman.shadow") version "7.0.0"
}
group = "codes.sinister"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
mavenLocal()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://oss.sonatype.org/content/groups/public/")
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT")
implementation("net.dv8tion:JDA:5.0.0-beta.15") {
exclude("opus-java")
}
}
application {
mainClass.set("codes.sinister.mc.Main")
}
tasks {
build {
dependsOn(shadowJar)
}
shadowJar {
archiveBaseName.set("minecraft-jda-bot")
archiveVersion.set("1.0.0-SNAPSHOT")
archiveClassifier.set("")
configurations = listOf(project.configurations.getByName("runtimeClasspath"))
}
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
jar {
manifest {
attributes["Main-Class"] = application.mainClass
}
}
}