-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
46 lines (36 loc) · 1.32 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val ktor_version: String by project
val kotlin_version: String by project
val logback_version: String by project
plugins {
application
kotlin("jvm") version "1.6.21"
kotlin("plugin.serialization") version "1.6.10"
}
group = "com.github.m5rian"
version = "0.0.1"
application {
mainClass.set("com.github.m5rian.ApplicationKt")
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
}
repositories {
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/ktor/eap")
maven("https://m2.dv8tion.net/releases")
maven("https://jitpack.io")
}
dependencies {
implementation("com.codahale:xsalsa20poly1305:0.11.0") // Encryption
implementation("com.github.walkyst:lavaplayer-fork:original-SNAPSHOT") // Getting opus audio
implementation("io.ktor:ktor-client-core-jvm:$ktor_version")
implementation("io.ktor:ktor-client-cio-jvm:$ktor_version")
implementation("io.ktor:ktor-client-websockets-jvm:$ktor_version")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2")
implementation("ch.qos.logback:logback-classic:$logback_version")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "17"
}
}