2020-05-14 08:18:03 +08:00
|
|
|
plugins {
|
2020-06-20 22:57:37 +08:00
|
|
|
kotlin("jvm") version Versions.kotlin
|
|
|
|
kotlin("plugin.serialization") version Versions.kotlin
|
2020-05-14 08:18:03 +08:00
|
|
|
id("java")
|
|
|
|
`maven-publish`
|
2020-06-20 22:57:37 +08:00
|
|
|
id("com.jfrog.bintray") version Versions.bintray
|
2020-05-14 08:18:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
sourceSets {
|
|
|
|
all {
|
|
|
|
languageSettings.enableLanguageFeature("InlineClasses")
|
|
|
|
|
|
|
|
languageSettings.useExperimentalAnnotation("kotlin.Experimental")
|
2020-06-21 00:47:52 +08:00
|
|
|
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
|
2020-05-14 08:18:03 +08:00
|
|
|
languageSettings.progressiveMode = true
|
|
|
|
languageSettings.useExperimentalAnnotation("net.mamoe.mirai.utils.MiraiInternalAPI")
|
|
|
|
languageSettings.useExperimentalAnnotation("kotlin.ExperimentalUnsignedTypes")
|
|
|
|
languageSettings.useExperimentalAnnotation("kotlin.experimental.ExperimentalTypeInference")
|
|
|
|
languageSettings.useExperimentalAnnotation("kotlin.contracts.ExperimentalContracts")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-06-20 20:46:20 +08:00
|
|
|
|
2020-05-14 08:18:03 +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-06-22 12:49:02 +08:00
|
|
|
compileAndRuntime(project(":mirai-console"))
|
|
|
|
compileAndRuntime("net.mamoe:mirai-core:${Versions.core}")
|
|
|
|
compileAndRuntime(kotlin("stdlib")) // embedded by core
|
2020-05-14 08:18:03 +08:00
|
|
|
|
2020-06-20 22:55:07 +08:00
|
|
|
testApi("net.mamoe:mirai-core-qqandroid:${Versions.core}")
|
2020-05-14 08:18:03 +08:00
|
|
|
testApi(project(":mirai-console"))
|
|
|
|
}
|
|
|
|
|
2020-06-21 00:44:02 +08:00
|
|
|
version = Versions.consolePure
|
2020-05-14 08:18:03 +08:00
|
|
|
|
2020-06-21 00:44:02 +08:00
|
|
|
description = "Console Pure CLI frontend for mirai"
|