Compare commits

...

1 Commits

Author SHA1 Message Date
kageru 19e68a7294
WIP: graal support
4 years ago

@ -1,16 +1,29 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.3.31"
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
}
sourceSets {
getByName("main").resources.srcDirs("src/main/resources")
}
sourceSets["main"].resources.srcDir("src/main/resources")
val botMainClass = "moe.kageru.kagebot.KagebotKt"
application {
mainClassName = "moe.kageru.kagebot.KagebotKt"
mainClassName = botMainClass
}
graal {
mainClass = botMainClass
outputName = "kagebot"
}
tasks.withType<Jar> {
manifest {
attributes(mapOf(
"Main-Class" to botMainClass
))
}
}
group = "moe.kageru.kagebot"
@ -18,6 +31,7 @@ version = "0.1"
repositories {
mavenCentral()
jcenter()
}
val test by tasks.getting(Test::class) {
@ -25,7 +39,7 @@ val test by tasks.getting(Test::class) {
}
dependencies {
compile("com.moandjiezana.toml:toml4j:0.7.2")
implementation("com.moandjiezana.toml:toml4j:0.7.2")
implementation(kotlin("stdlib-jdk8"))
implementation("org.javacord:javacord:3.0.4")

Loading…
Cancel
Save