mirai/mirai-console-graphical/build.gradle.kts

56 lines
1.6 KiB
Plaintext
Raw Normal View History

plugins {
id("kotlinx-serialization")
2020-03-24 15:19:43 +08:00
// id("org.openjfx.javafxplugin") version "0.0.8"
id("kotlin")
id("java")
}
2020-03-24 15:19:43 +08:00
//javafx {
// version = "13.0.2"
// modules = listOf("javafx.controls")
// //mainClassName = "Application"
//}
apply(plugin = "com.github.johnrengelman.shadow")
2020-03-24 18:02:19 +08:00
version = Versions.Mirai.console
2020-03-05 09:29:13 +08:00
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>() {
manifest {
attributes["Main-Class"] = "net.mamoe.mirai.console.graphical.MiraiGraphicalLoader"
}
}
val kotlinVersion: String by rootProject.ext
val atomicFuVersion: String by rootProject.ext
val coroutinesVersion: String by rootProject.ext
val kotlinXIoVersion: String by rootProject.ext
val coroutinesIoVersion: String by rootProject.ext
val klockVersion: String by rootProject.ext
val ktorVersion: String by rootProject.ext
val serializationVersion: String by rootProject.ext
fun kotlinx(id: String, version: String) = "org.jetbrains.kotlinx:kotlinx-$id:$version"
fun ktor(id: String, version: String) = "io.ktor:ktor-$id:$version"
2020-02-28 20:13:25 +08:00
val miraiVersion: String by rootProject.ext
dependencies {
2020-02-28 20:13:25 +08:00
implementation("net.mamoe:mirai-core-jvm:$miraiVersion")
implementation("net.mamoe:mirai-core-qqandroid-jvm:$miraiVersion")
api(project(":mirai-console"))
2020-02-28 20:13:25 +08:00
api(group = "no.tornado", name = "tornadofx", version = "1.7.19")
2020-03-24 15:19:43 +08:00
api(group = "com.jfoenix", name = "jfoenix", version = "8.0.8")
2020-03-17 21:57:39 +08:00
testApi(group = "org.yaml", name = "snakeyaml", version = "1.25")
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
2020-03-05 09:29:13 +08:00
}