WIP: graal support
This commit is contained in:
parent
1a8c9fdb6f
commit
19e68a7294
|
@ -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")
|
||||
|
||||
val botMainClass = "moe.kageru.kagebot.KagebotKt"
|
||||
|
||||
application {
|
||||
mainClassName = botMainClass
|
||||
}
|
||||
|
||||
sourceSets["main"].resources.srcDir("src/main/resources")
|
||||
application {
|
||||
mainClassName = "moe.kageru.kagebot.KagebotKt"
|
||||
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…
Reference in New Issue
Block a user