discord-kagebot/build.gradle.kts

65 lines
1.6 KiB
Plaintext
Raw Normal View History

2019-06-06 20:02:47 +02:00
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2019-11-11 18:10:28 +01:00
apply {
2019-11-24 14:25:32 +01:00
plugin("kotlin-kapt")
2019-11-11 18:10:28 +01:00
}
2019-06-06 20:02:47 +02:00
plugins {
kotlin("jvm") version "1.4.10"
id("com.github.johnrengelman.shadow") version "5.2.0" apply true
2019-11-24 14:25:32 +01:00
application
2019-06-08 11:07:52 +02:00
}
2019-07-07 10:21:24 +02:00
val botMainClass = "moe.kageru.kagebot.KagebotKt"
2019-06-08 11:07:52 +02:00
application {
2019-11-24 14:25:32 +01:00
mainClassName = botMainClass
2019-07-07 10:21:24 +02:00
}
tasks.withType<Jar> {
2019-11-24 14:25:32 +01:00
manifest {
attributes(
mapOf(
"Main-Class" to botMainClass
)
)
}
2019-06-06 20:02:47 +02:00
}
group = "moe.kageru.kagebot"
version = "0.1"
repositories {
2019-11-24 14:25:32 +01:00
mavenCentral()
jcenter()
maven {
url = uri("https://dl.bintray.com/arrow-kt/arrow-kt/")
}
2019-06-06 20:02:47 +02:00
}
2019-06-08 21:52:47 +02:00
val test by tasks.getting(Test::class) {
2019-11-24 14:25:32 +01:00
useJUnitPlatform { }
2019-06-08 21:52:47 +02:00
}
val arrowVersion = "0.11.0"
2019-06-06 20:02:47 +02:00
dependencies {
2020-10-30 10:27:43 +01:00
implementation("com.uchuhimo:konf-core:0.23.0")
implementation("com.uchuhimo:konf-toml:0.23.0")
implementation("org.javacord:javacord:3.1.1")
2020-05-13 17:45:24 +02:00
implementation("org.mapdb:mapdb:3.0.8")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.4.10")
2020-10-30 10:27:43 +01:00
implementation("com.fasterxml.jackson.core:jackson-annotations:2.11.3")
2019-06-08 21:52:47 +02:00
2019-11-24 14:25:32 +01:00
implementation("io.arrow-kt:arrow-core:$arrowVersion")
implementation("io.arrow-kt:arrow-syntax:$arrowVersion")
2019-11-11 18:10:28 +01:00
2019-11-24 14:25:32 +01:00
testImplementation("io.kotlintest:kotlintest-runner-junit5:3.4.2")
2020-05-13 17:45:24 +02:00
testImplementation("io.mockk:mockk:1.10.0")
2019-11-24 14:25:32 +01:00
// these two are needed to access javacord internals (such as reading from sent embeds during tests)
2020-10-30 10:27:43 +01:00
testImplementation("org.javacord:javacord-core:3.1.1")
testImplementation("com.fasterxml.jackson.core:jackson-databind:2.11.3")
2019-06-06 20:02:47 +02:00
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "14"
2019-07-13 14:52:05 +02:00
}