import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.3.40" id("com.github.johnrengelman.shadow") version "5.1.0" apply true id("com.palantir.graal") version "0.3.0-37-g77aa98f" application } val botMainClass = "moe.kageru.kagebot.KagebotKt" application { mainClassName = botMainClass } graal { mainClass = botMainClass outputName = "kagebot" } tasks.withType { manifest { attributes(mapOf( "Main-Class" to botMainClass )) } } group = "moe.kageru.kagebot" version = "0.1" repositories { mavenCentral() jcenter() } val test by tasks.getting(Test::class) { useJUnitPlatform { } } dependencies { implementation("com.moandjiezana.toml:toml4j:0.7.2") implementation(kotlin("stdlib-jdk8")) implementation("org.javacord:javacord:3.0.4") testImplementation("io.kotlintest:kotlintest-runner-junit5:3.3.2") testImplementation("io.mockk:mockk:1.9") // these two are needed to access javacord internals (such as reading from sent embeds during tests) testImplementation("org.javacord:javacord-core:3.0.4") testCompile("com.fasterxml.jackson.core:jackson-databind:2.9.9") } tasks.withType { kotlinOptions.jvmTarget = "1.8" }