Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
kageru | 19e68a7294 |
|
@ -1,16 +1,29 @@
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
plugins {
|
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
|
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")
|
graal {
|
||||||
application {
|
mainClass = botMainClass
|
||||||
mainClassName = "moe.kageru.kagebot.KagebotKt"
|
outputName = "kagebot"
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType<Jar> {
|
||||||
|
manifest {
|
||||||
|
attributes(mapOf(
|
||||||
|
"Main-Class" to botMainClass
|
||||||
|
))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "moe.kageru.kagebot"
|
group = "moe.kageru.kagebot"
|
||||||
|
@ -18,6 +31,7 @@ version = "0.1"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
jcenter()
|
||||||
}
|
}
|
||||||
|
|
||||||
val test by tasks.getting(Test::class) {
|
val test by tasks.getting(Test::class) {
|
||||||
|
@ -25,7 +39,7 @@ val test by tasks.getting(Test::class) {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile("com.moandjiezana.toml:toml4j:0.7.2")
|
implementation("com.moandjiezana.toml:toml4j:0.7.2")
|
||||||
implementation(kotlin("stdlib-jdk8"))
|
implementation(kotlin("stdlib-jdk8"))
|
||||||
implementation("org.javacord:javacord:3.0.4")
|
implementation("org.javacord:javacord:3.0.4")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user