43 lines
867 B
Kotlin
43 lines
867 B
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
kotlin("jvm") version "1.6.20"
|
|
kotlin("plugin.serialization") version "1.6.20"
|
|
id("com.github.johnrengelman.shadow") version "7.1.2"
|
|
}
|
|
|
|
val kordVersion = "0.8.0-M12"
|
|
val kotlinxSerializationVersion = "1.3.2"
|
|
|
|
group = "nl.kallestruik"
|
|
version = "1.0"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("dev.kord:kord-core:$kordVersion")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinxSerializationVersion")
|
|
|
|
testImplementation(kotlin("test"))
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
|
|
tasks.build {
|
|
dependsOn(tasks.shadowJar)
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
|
|
val jar by tasks.getting(Jar::class) {
|
|
manifest {
|
|
attributes["Main-Class"] = "nl.kallestruik.discordbot.BotKt"
|
|
}
|
|
} |