2020-04-22 13:54:50 +08:00
|
|
|
@file:Suppress("UNUSED_VARIABLE")
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
kotlin("jvm")
|
|
|
|
java
|
|
|
|
}
|
|
|
|
|
|
|
|
description = "Java compatibility validator for mirai-core and mirai-core-qqandroid"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
sourceSets {
|
|
|
|
all {
|
|
|
|
languageSettings.enableLanguageFeature("InlineClasses")
|
|
|
|
languageSettings.useExperimentalAnnotation("kotlin.Experimental")
|
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
dependencies {
|
2020-07-20 15:06:30 +08:00
|
|
|
api(kotlin("stdlib", Versions.Kotlin.stdlib))
|
2020-04-22 13:54:50 +08:00
|
|
|
api(project(":mirai-core-qqandroid"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
dependencies {
|
2020-07-20 15:06:30 +08:00
|
|
|
api(kotlin("stdlib", Versions.Kotlin.stdlib))
|
2020-04-22 13:54:50 +08:00
|
|
|
api(kotlin("test"))
|
|
|
|
api(kotlin("test-junit"))
|
|
|
|
api(project(":mirai-core-qqandroid"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
}
|