mirai/mirai-console-wrapper/build.gradle.kts

74 lines
2.5 KiB
Plaintext
Raw Normal View History

2020-03-05 17:29:12 +08:00
plugins {
2020-03-25 12:21:37 +08:00
kotlin("jvm")
kotlin("plugin.serialization")
2020-03-05 17:29:12 +08:00
}
apply(plugin = "com.github.johnrengelman.shadow")
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
manifest {
attributes["Main-Class"] = "net.mamoe.mirai.console.wrapper.WrapperMain"
}
}
kotlin {
sourceSets {
all {
languageSettings.enableLanguageFeature("InlineClasses")
languageSettings.useExperimentalAnnotation("kotlin.Experimental")
languageSettings.useExperimentalAnnotation("kotlin.OptIn")
}
}
}
2020-03-06 16:34:17 +08:00
2020-03-05 17:29:12 +08:00
dependencies {
2020-03-08 21:46:46 +08:00
//core && protocol
2020-03-24 18:02:19 +08:00
api(kotlin("stdlib", Versions.Kotlin.stdlib))
api(kotlin("serialization", Versions.Kotlin.stdlib))
api(kotlin("reflect", Versions.Kotlin.stdlib))
2020-03-05 17:29:12 +08:00
2020-03-24 18:02:19 +08:00
api(kotlinx("coroutines-core", Versions.Kotlin.coroutines))
2020-03-08 21:46:46 +08:00
api(kotlinx("serialization-runtime-common", serializationVersion))
api(kotlinx("serialization-protobuf-common", serializationVersion))
api(kotlinx("io", kotlinXIoVersion))
api(kotlinx("coroutines-io", coroutinesIoVersion))
2020-03-05 17:29:12 +08:00
api(kotlinx("coroutines-core", coroutinesVersion))
2020-03-08 21:46:46 +08:00
api("org.jetbrains.kotlinx:atomicfu-common:$atomicFuVersion")
2020-03-06 16:34:17 +08:00
2020-03-08 21:46:46 +08:00
api(ktor("client-cio", ktorVersion))
api(ktor("client-core", ktorVersion))
api(ktor("network", ktorVersion))
2020-03-06 16:34:17 +08:00
api(kotlin("reflect", kotlinVersion))
2020-03-08 21:46:46 +08:00
api(ktor("client-core-jvm", ktorVersion))
api(kotlinx("io-jvm", kotlinXIoVersion))
api(kotlinx("serialization-runtime", serializationVersion))
api(kotlinx("serialization-protobuf", serializationVersion))
2020-03-06 16:34:17 +08:00
api(kotlinx("coroutines-io-jvm", coroutinesIoVersion))
api(kotlinx("coroutines-core", coroutinesVersion))
api("org.bouncycastle:bcprov-jdk15on:1.64")
2020-03-08 21:46:46 +08:00
api("org.jetbrains.kotlinx:atomicfu:$atomicFuVersion")
api(kotlinx("serialization-runtime-common", serializationVersion))
api(kotlinx("serialization-protobuf-common", serializationVersion))
api(kotlinx("serialization-runtime", serializationVersion))
//for slf4j[ktor used]
2020-03-25 12:21:37 +08:00
// api(group = "org.apache.cassandra", name = "cassandra-all", version = "0.8.1")
2020-03-08 21:46:46 +08:00
//mirai-console
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")
2020-03-26 22:04:48 +08:00
api(group = "com.github.tomas-langer.cli", name="cli-progress", version="1.0.0")
2020-03-05 17:29:12 +08:00
}
2020-03-24 18:02:19 +08:00
version = Versions.Mirai.consoleWrapper
2020-03-05 17:29:12 +08:00
description = "Console with plugin support for mirai"