-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
41 lines (33 loc) · 1.02 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.10"
application
}
group = "io.github.kobi32768"
version = file("src/main/resources/version.txt").readText().trim()
val jar by tasks.getting(Jar::class) {
manifest {
attributes["Main-Class"] = "io.github.kobi32768.quotebot.MainKt"
}
}
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("net.dv8tion:JDA:5.0.0-alpha.17")
implementation("com.github.ajalt.mordant:mordant:2.0.0-beta2")
implementation(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
application {
mainClass.set("io.github.kobi32768.quotebot.MainKt")
}