mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-03 03:29:22 +08:00
46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
plugins {
|
|
id("kotlinx-serialization")
|
|
id("kotlin")
|
|
id("java")
|
|
}
|
|
|
|
|
|
apply(plugin = "com.github.johnrengelman.shadow")
|
|
|
|
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"
|
|
|
|
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>() {
|
|
manifest {
|
|
attributes["Main-Class"] = "net.mamoe.mirai.console.MiraiConsolePureLoader"
|
|
}
|
|
}
|
|
|
|
|
|
dependencies {
|
|
api(project(":mirai-core"))
|
|
api(project(":mirai-core-qqandroid"))
|
|
api(project(":mirai-api-http"))
|
|
runtimeOnly(files("../mirai-core-qqandroid/build/classes/kotlin/jvm/main"))
|
|
runtimeOnly(files("../mirai-core/build/classes/kotlin/jvm/main"))
|
|
api(kotlin("serialization"))
|
|
api(group = "com.alibaba", name = "fastjson", version = "1.2.62")
|
|
api(group = "org.yaml", name = "snakeyaml", version = "1.25")
|
|
api(group = "com.moandjiezana.toml", name = "toml4j", version = "0.7.2")
|
|
api("org.bouncycastle:bcprov-jdk15on:1.64")
|
|
|
|
implementation("no.tornado:tornadofx:1.7.17")
|
|
// classpath is not set correctly by IDE
|
|
} |