mirai/frontend/mirai-console-pure/build.gradle.kts
Him188 f9132124e7 Merge remote-tracking branch 'origin/reborn' into reborn
# Conflicts:
#	frontend/mirai-console-pure/build.gradle.kts
2020-06-20 22:57:37 +08:00

66 lines
1.9 KiB
Plaintext

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
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")
languageSettings.useExperimentalAnnotation("kotlin.OptIn")
languageSettings.progressiveMode = true
languageSettings.useExperimentalAnnotation("net.mamoe.mirai.utils.MiraiInternalAPI")
languageSettings.useExperimentalAnnotation("kotlin.ExperimentalUnsignedTypes")
languageSettings.useExperimentalAnnotation("kotlin.experimental.ExperimentalTypeInference")
languageSettings.useExperimentalAnnotation("kotlin.contracts.ExperimentalContracts")
}
}
}
var debugging = true
dependencies {
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}")
import0(kotlin("stdlib")) // embedded by core
testApi("net.mamoe:mirai-core-qqandroid:${Versions.core}")
testApi(project(":mirai-console"))
}
version = Versions.Mirai.consolePure
description = "Console Pure CLI frontend for mirai"
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType(JavaCompile::class.java) {
options.encoding = "UTF8"
}