mirai/mirai-debug/build.gradle.kts

80 lines
2.6 KiB
Plaintext
Raw Normal View History

2019-11-08 20:51:40 +08:00
plugins {
id("application")
id("org.openjfx.javafxplugin") version "0.0.8"
kotlin("jvm")
java
2019-11-17 16:36:29 +08:00
id("kotlinx-serialization")
2019-11-08 20:51:40 +08:00
}
javafx {
version = "11"
modules = listOf("javafx.controls")
//mainClassName = "Application"
}
2019-11-08 21:17:25 +08:00
application {
mainClassName = "Application"
}
2019-11-17 16:36:29 +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 serializationVersion: String by rootProject.ext
2019-11-08 20:51:40 +08:00
2019-11-17 16:36:29 +08:00
val klockVersion: String by rootProject.ext
val ktorVersion: String by rootProject.ext
2019-11-08 20:51:40 +08:00
kotlin {
sourceSets {
all {
languageSettings.enableLanguageFeature("InlineClasses")
2019-11-23 23:14:27 +08:00
languageSettings.useExperimentalAnnotation("kotlin.Experimental")
2019-11-08 20:51:40 +08:00
}
}
}
2019-12-19 17:25:49 +08:00
fun kotlinx(id: String, version: String) = "org.jetbrains.kotlinx:kotlinx-$id:$version"
2019-11-17 16:36:29 +08:00
2019-12-19 17:25:49 +08:00
fun ktor(id: String, version: String) = "io.ktor:ktor-$id:$version"
2019-11-17 16:36:29 +08:00
2019-11-08 20:51:40 +08:00
dependencies {
2019-12-19 17:25:49 +08:00
2020-01-23 19:58:44 +08:00
runtimeOnly(files("../mirai-core/build/classes/kotlin/jvm/main")) // IDE bug
runtimeOnly(files("../mirai-core-qqandroid/build/classes/kotlin/jvm/main")) // IDE bug
implementation(project(":mirai-core-qqandroid"))
// runtimeOnly(files("../mirai-core/build/classes/kotlin/jvm/main")) // classpath is not added correctly by IDE
2019-11-08 20:51:40 +08:00
2020-01-06 20:49:26 +08:00
implementation("org.bouncycastle:bcprov-jdk15on:1.64")
2020-01-03 16:57:08 +08:00
2019-11-17 16:36:29 +08:00
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
2019-11-08 20:51:40 +08:00
implementation("org.pcap4j:pcap4j-distribution:1.8.2")
implementation("no.tornado:tornadofx:1.7.17")
2019-12-02 17:57:14 +08:00
implementation(group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-javafx", version = "1.3.2")
2019-11-08 20:51:40 +08:00
2019-12-02 17:57:14 +08:00
implementation(kotlin("stdlib", kotlinVersion))
implementation("org.jetbrains.kotlinx:atomicfu:$atomicFuVersion")
implementation(kotlinx("io-jvm", kotlinXIoVersion))
implementation(kotlinx("io", kotlinXIoVersion))
implementation(kotlinx("coroutines-io", coroutinesIoVersion))
implementation(kotlinx("coroutines-core", coroutinesVersion))
2019-11-17 16:36:29 +08:00
2019-12-02 17:57:14 +08:00
implementation(kotlinx("serialization-runtime", serializationVersion))
2019-11-20 19:39:48 +08:00
2019-12-02 17:57:14 +08:00
implementation(ktor("http-cio", ktorVersion))
implementation(ktor("http", ktorVersion))
implementation(ktor("client-core-jvm", ktorVersion))
implementation(ktor("client-cio", ktorVersion))
implementation(ktor("client-core", ktorVersion))
implementation(ktor("network", ktorVersion))
2019-11-20 19:39:48 +08:00
2020-01-23 19:58:44 +08:00
testImplementation(kotlin("test-annotations-common"))
testImplementation(kotlin("test"))
testImplementation(kotlin("test-junit"))
testImplementation(kotlin("script-runtime"))
2019-11-08 20:51:40 +08:00
}