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

48 lines
1.5 KiB
Plaintext
Raw Normal View History

plugins {
kotlin("jvm") version Versions.kotlin
kotlin("plugin.serialization") version Versions.kotlin
id("java")
`maven-publish`
id("com.jfrog.bintray") version Versions.bintray
}
kotlin {
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("kotlin.ExperimentalUnsignedTypes")
languageSettings.useExperimentalAnnotation("kotlin.experimental.ExperimentalTypeInference")
languageSettings.useExperimentalAnnotation("kotlin.contracts.ExperimentalContracts")
}
}
}
2020-06-20 20:46:20 +08:00
var debugging = true
dependencies {
2020-06-20 20:46:20 +08:00
fun import0(dep: Any) {
if (debugging) {
implementation(dep)
} else {
compileOnly(dep)
}
}
import0("org.jline:jline:3.15.0")
import0("org.fusesource.jansi:jansi:1.18")
import0(project(":mirai-console"))
import0("net.mamoe:mirai-core:${Versions.core}")
2020-06-20 20:46:20 +08:00
import0(kotlin("stdlib")) // embedded by core
2020-06-20 22:55:07 +08:00
testApi("net.mamoe:mirai-core-qqandroid:${Versions.core}")
testApi(project(":mirai-console"))
}
2020-06-21 00:44:02 +08:00
version = Versions.consolePure
2020-06-21 00:44:02 +08:00
description = "Console Pure CLI frontend for mirai"