mirai/frontend/mirai-console-terminal/build.gradle.kts

53 lines
1.9 KiB
Plaintext
Raw Normal View History

plugins {
2020-08-16 23:21:11 +08:00
kotlin("jvm")
kotlin("plugin.serialization")
id("java")
`maven-publish`
2020-06-28 11:45:21 +08:00
id("com.jfrog.bintray")
}
kotlin {
2020-08-16 23:21:11 +08:00
target.compilations.all {
kotlinOptions {
jvmTarget = "1.8"
2020-09-04 20:49:02 +08:00
freeCompilerArgs = freeCompilerArgs + "-Xjvm-default=all"
2020-08-16 23:21:11 +08:00
}
}
sourceSets {
all {
languageSettings.enableLanguageFeature("InlineClasses")
languageSettings.useExperimentalAnnotation("kotlin.Experimental")
2020-06-21 00:47:52 +08:00
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
languageSettings.progressiveMode = true
languageSettings.useExperimentalAnnotation("net.mamoe.mirai.utils.MiraiInternalAPI")
languageSettings.useExperimentalAnnotation("net.mamoe.mirai.utils.MiraiExperimentalAPI")
2020-09-12 16:11:53 +08:00
languageSettings.useExperimentalAnnotation("net.mamoe.mirai.console.util.ConsoleExperimentalApi")
languageSettings.useExperimentalAnnotation("net.mamoe.mirai.console.ConsoleFrontEndImplementation")
languageSettings.useExperimentalAnnotation("kotlin.ExperimentalUnsignedTypes")
languageSettings.useExperimentalAnnotation("kotlin.experimental.ExperimentalTypeInference")
languageSettings.useExperimentalAnnotation("kotlin.contracts.ExperimentalContracts")
}
}
}
2020-06-20 20:46:20 +08:00
dependencies {
2020-06-22 12:49:02 +08:00
implementation("org.jline:jline:3.15.0")
implementation("org.fusesource.jansi:jansi:1.18")
2020-06-20 20:46:20 +08:00
2020-09-20 00:28:57 +08:00
compileAndTestRuntime(project(":mirai-console"))
compileAndTestRuntime("net.mamoe:mirai-core:${Versions.core}")
compileAndTestRuntime(kotlin("stdlib-jdk8", Versions.kotlinStdlib)) // embedded by core
2020-06-20 22:55:07 +08:00
testApi("net.mamoe:mirai-core-qqandroid:${Versions.core}")
testApi(project(":mirai-console"))
}
version = Versions.consoleTerminal
description = "Console Terminal CLI frontend for mirai"
2020-06-28 11:45:21 +08:00
setupPublishing("mirai-console-terminal", bintrayPkgName = "mirai-console-terminal")
2020-06-28 11:45:21 +08:00
// endregion