mirai/mirai-console/build.gradle.kts

46 lines
1.5 KiB
Plaintext
Raw Normal View History

2020-01-25 17:02:43 +08:00
plugins {
id("kotlinx-serialization")
id("kotlin")
id("java")
}
2020-02-14 00:24:43 +08:00
apply(plugin = "com.github.johnrengelman.shadow")
2020-01-25 17:02:43 +08:00
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-17 16:48:18 +08:00
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>() {
manifest {
2020-02-17 17:36:22 +08:00
attributes["Main-Class"] = "net.mamoe.mirai.console.MiraiConsolePureLoader"
2020-02-17 16:48:18 +08:00
}
}
2020-01-25 17:02:43 +08:00
dependencies {
api(project(":mirai-core"))
2020-02-02 23:20:34 +08:00
api(project(":mirai-core-qqandroid"))
2020-02-12 22:28:59 +08:00
api(project(":mirai-api-http"))
2020-02-02 23:20:34 +08:00
runtimeOnly(files("../mirai-core-qqandroid/build/classes/kotlin/jvm/main"))
2020-01-25 17:02:43 +08:00
runtimeOnly(files("../mirai-core/build/classes/kotlin/jvm/main"))
api(kotlin("serialization"))
2020-02-13 00:10:59 +08:00
api(group = "com.alibaba", name = "fastjson", version = "1.2.62")
2020-02-14 16:32:59 +08:00
api(group = "org.yaml", name = "snakeyaml", version = "1.25")
2020-02-14 17:15:37 +08:00
api(group = "com.moandjiezana.toml", name = "toml4j", version = "0.7.2")
2020-02-15 23:17:58 +08:00
api("org.bouncycastle:bcprov-jdk15on:1.64")
2020-02-16 13:54:42 +08:00
implementation("no.tornado:tornadofx:1.7.17")
2020-01-25 17:02:43 +08:00
// classpath is not set correctly by IDE
}