mirai/mirai-debug/build.gradle.kts

73 lines
2.1 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-11-17 16:36:29 +08:00
fun DependencyHandlerScope.kotlinx(id: String, version: String) {
implementation("org.jetbrains.kotlinx:$id:$version")
}
fun DependencyHandlerScope.ktor(id: String, version: String) {
implementation("io.ktor:$id:$version")
}
2019-11-08 20:51:40 +08:00
dependencies {
2019-11-17 16:36:29 +08:00
implementation(project(":mirai-core"))
2019-11-10 21:46:40 +08:00
runtimeOnly(files("../mirai-core/build/classes/kotlin/jvm/main")) // mpp targeting android limitation
2019-11-08 20:51:40 +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")
compile(group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-javafx", version = "1.3.2")
2019-11-17 16:36:29 +08:00
kotlin("kotlin-stdlib", kotlinVersion)
kotlinx("atomicfu", atomicFuVersion)
kotlinx("kotlinx-io-jvm", kotlinXIoVersion)
kotlinx("kotlinx-io", kotlinXIoVersion)
kotlinx("kotlinx-coroutines-io", coroutinesIoVersion)
kotlinx("kotlinx-coroutines-core", coroutinesVersion)
kotlinx("kotlinx-serialization-runtime", serializationVersion)
2019-11-20 19:39:48 +08:00
ktor("ktor-http-cio", ktorVersion)
ktor("ktor-http", ktorVersion)
ktor("ktor-client-core-jvm", ktorVersion)
ktor("ktor-client-cio", ktorVersion)
ktor("ktor-client-core", ktorVersion)
ktor("ktor-network", ktorVersion)
2019-11-08 20:51:40 +08:00
}