mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-03 05:34:42 +08:00
39 lines
1.2 KiB
Plaintext
39 lines
1.2 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"
|
|
|
|
dependencies {
|
|
api(project(":mirai-core"))
|
|
api(project(":mirai-core-qqandroid"))
|
|
api(project(":mirai-api-http"))
|
|
api(project(":mirai-console"))
|
|
runtimeOnly(files("../mirai-core-qqandroid/build/classes/kotlin/jvm/main"))
|
|
api(group = "no.tornado", name = "tornadofx", version = "1.7.19")
|
|
api(group = "com.jfoenix", name = "jfoenix", version = "9.0.8")
|
|
api("org.bouncycastle:bcprov-jdk15on:1.64")
|
|
// classpath is not set correctly by IDE
|
|
}
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
} |