mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
25 lines
920 B
Plaintext
25 lines
920 B
Plaintext
plugins {
|
|
kotlin("jvm") version "1.4-M2"
|
|
kotlin("plugin.serialization") version "1.4-M2"
|
|
id("java")
|
|
}
|
|
|
|
kotlin {
|
|
sourceSets {
|
|
all {
|
|
languageSettings.useExperimentalAnnotation("kotlin.Experimental")
|
|
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
|
|
languageSettings.progressiveMode = true
|
|
languageSettings.languageVersion = "1.4"
|
|
languageSettings.apiVersion = "1.4"
|
|
languageSettings.useExperimentalAnnotation("net.mamoe.mirai.utils.MiraiInternalAPI")
|
|
languageSettings.useExperimentalAnnotation("kotlin.ExperimentalUnsignedTypes")
|
|
languageSettings.useExperimentalAnnotation("kotlin.experimental.ExperimentalTypeInference")
|
|
languageSettings.useExperimentalAnnotation("kotlin.contracts.ExperimentalContracts")
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api(kotlin("stdlib-jdk8"))
|
|
} |