2020-09-13 21:26:49 +08:00
|
|
|
plugins {
|
|
|
|
kotlin("jvm") version "1.4.0"
|
|
|
|
kotlin("plugin.serialization") version "1.4.0"
|
|
|
|
kotlin("kapt") version "1.4.0"
|
|
|
|
id("com.github.johnrengelman.shadow") version "5.2.0"
|
|
|
|
}
|
|
|
|
|
|
|
|
group = "org.example"
|
|
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
jcenter()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin.sourceSets.all {
|
|
|
|
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compileOnly(kotlin("stdlib-jdk8"))
|
|
|
|
|
2020-09-18 00:21:05 +08:00
|
|
|
val core = "1.3.0"
|
2020-09-18 15:36:03 +08:00
|
|
|
val console = "1.0-RC-dev-3"
|
2020-09-13 21:26:49 +08:00
|
|
|
|
|
|
|
compileOnly("net.mamoe:mirai-console:$console")
|
|
|
|
compileOnly("net.mamoe:mirai-core:$core")
|
|
|
|
|
|
|
|
val autoService = "1.0-rc7"
|
|
|
|
kapt("com.google.auto.service", "auto-service", autoService)
|
|
|
|
compileOnly("com.google.auto.service", "auto-service-annotations", autoService)
|
|
|
|
|
|
|
|
testImplementation("net.mamoe:mirai-console:$console")
|
|
|
|
testImplementation("net.mamoe:mirai-core:$core")
|
|
|
|
testImplementation("net.mamoe:mirai-console-pure:$console")
|
|
|
|
testImplementation(kotlin("stdlib-jdk8"))
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin.target.compilations.all {
|
|
|
|
kotlinOptions.freeCompilerArgs += "-Xjvm-default=enable"
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|