mirai/mirai-plugins/image-sender/build.gradle.kts

50 lines
1.5 KiB
Plaintext
Raw Normal View History

2020-01-18 21:35:20 +08:00
plugins {
kotlin("jvm")
java
2020-01-19 21:15:25 +08:00
id("com.github.johnrengelman.shadow") version "5.2.0"
2020-01-18 21:35:20 +08:00
}
2020-01-19 21:15:25 +08:00
version = "1.0.0"
2020-01-18 21:35:20 +08:00
val kotlinVersion: String by rootProject.ext
val atomicFuVersion: String by rootProject.ext
val coroutinesVersion: String by rootProject.ext
val kotlinXIoVersion: String by rootProject.ext
val coroutinesIoVersion: String by rootProject.ext
val serializationVersion: String by rootProject.ext
val klockVersion: String by rootProject.ext
val ktorVersion: String by rootProject.ext
kotlin {
sourceSets {
all {
languageSettings.enableLanguageFeature("InlineClasses")
2020-01-28 18:33:44 +08:00
languageSettings.enableLanguageFeature("NewInference")
2020-01-18 21:35:20 +08:00
languageSettings.useExperimentalAnnotation("kotlin.Experimental")
}
}
}
2020-01-18 22:24:02 +08:00
2020-01-18 21:35:20 +08:00
fun kotlinx(id: String, version: String) = "org.jetbrains.kotlinx:kotlinx-$id:$version"
fun ktor(id: String, version: String) = "io.ktor:ktor-$id:$version"
dependencies {
api(project(":mirai-core"))
api(project(":mirai-console"))
runtimeOnly(files("../mirai-core/build/classes/kotlin/jvm/main")) // classpath is not added correctly by IDE
api(kotlin("stdlib", kotlinVersion))
api(kotlinx("io-jvm", kotlinXIoVersion))
api(kotlinx("io", kotlinXIoVersion))
api(kotlinx("coroutines-io", coroutinesIoVersion))
api(kotlinx("coroutines-core", coroutinesVersion))
2020-01-19 21:15:25 +08:00
api("org.jsoup:jsoup:1.12.1")
api(group = "com.alibaba", name = "fastjson", version = "1.2.62")
2020-01-18 21:35:20 +08:00
}
tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
}