-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
58 lines (49 loc) · 1.52 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
plugins {
kotlin("jvm") version "2.0.21"
application
}
group = "com.therohankumar"
version = "2.0"
repositories {
mavenCentral()
maven("https://m2.dv8tion.net/releases")
maven("https://maven.arbjerg.dev/releases")
maven("https://maven.lavalink.dev/releases")
maven("https://jitpack.io")
}
dependencies {
implementation(kotlin("stdlib"))
implementation("net.dv8tion:JDA:5.2.2")
implementation("dev.arbjerg:lavaplayer:2.2.3")
implementation("dev.arbjerg:lavadsp:0.7.8")
implementation("com.github.rohank05:lavadsp-extended:0.0.5")
implementation("io.github.cdimascio:dotenv-kotlin:6.4.1")
implementation("ch.qos.logback:logback-classic:1.5.16")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
implementation("dev.lavalink.youtube:v2:1.11.4")
implementation("dev.arbjerg:lavaplayer-ext-youtube-rotator:2.2.2")
testImplementation(kotlin("test"))
}
// Specify the main class
application {
mainClass.set("com.therohankumar.MainKt") // Replace with your actual main class
}
tasks {
test {
useJUnitPlatform()
}
jar {
manifest {
attributes["Main-Class"] = application.mainClass.get()
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(sourceSets.main.get().output)
dependsOn(configurations.runtimeClasspath)
from({
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
})
}
}
kotlin {
jvmToolchain(21)
}