Merge remote-tracking branch 'origin/master'

This commit is contained in:
jiahua.liu 2020-03-30 19:05:52 +08:00
commit df14efba37
3 changed files with 12 additions and 39 deletions

View File

@ -1,4 +1,3 @@
import Versions.Publishing.bintray
import java.util.*
plugins {
@ -65,16 +64,14 @@ fun kotlinx(id: String, version: String) = "org.jetbrains.kotlinx:kotlinx-$id:$v
fun ktor(id: String, version: String) = "io.ktor:ktor-$id:$version"
val miraiVersion = Versions.Mirai.core
dependencies {
implementation("net.mamoe:mirai-core-jvm:$miraiVersion")
implementation("net.mamoe:mirai-core-qqandroid-jvm:$miraiVersion")
api(project(":mirai-console"))
compileOnly("net.mamoe:mirai-core-jvm:${Versions.Mirai.core}")
compileOnly(project(":mirai-console"))
api(group = "no.tornado", name = "tornadofx", version = "1.7.19")
api(group = "com.jfoenix", name = "jfoenix", version = "9.0.8")
testApi(project(":mirai-console"))
testApi(group = "org.yaml", name = "snakeyaml", version = "1.25")
}

View File

@ -14,29 +14,8 @@ tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>() {
attributes["Main-Class"] = "net.mamoe.mirai.console.MiraiConsoleTerminalLoader"
}
}
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 klockVersion: String by rootProject.ext
val ktorVersion: String by rootProject.ext
val serializationVersion: String by rootProject.ext
fun kotlinx(id: String, version: String) = "org.jetbrains.kotlinx:kotlinx-$id:$version"
fun ktor(id: String, version: String) = "io.ktor:ktor-$id:$version"
val miraiVersion = Versions.Mirai.core
dependencies {
implementation("net.mamoe:mirai-core-jvm:$miraiVersion")
implementation("net.mamoe:mirai-core-qqandroid-jvm:$miraiVersion")
api("net.mamoe:mirai-core-qqandroid-jvm:${Versions.Mirai.core}")
api(project(":mirai-console"))
api(group = "com.googlecode.lanterna", name = "lanterna", version = "3.0.2")
}

View File

@ -1,5 +1,5 @@
import java.util.*
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.util.*
plugins {
kotlin("jvm")
@ -23,18 +23,15 @@ kotlin {
}
dependencies {
compileOnly("net.mamoe:mirai-core-jvm:${Versions.Mirai.core}")
compileOnly("net.mamoe:mirai-core-qqandroid-jvm:${Versions.Mirai.core}")
compileOnly(kotlin("stdlib")) // embedded by core
api("com.google.code.gson:gson:2.8.6")
api(group = "org.yaml", name = "snakeyaml", version = "1.25")
api(group = "com.moandjiezana.toml", name = "toml4j", version = "0.7.2")
implementation("com.google.code.gson:gson:2.8.6")
implementation(group = "org.yaml", name = "snakeyaml", version = "1.25")
implementation(group = "com.moandjiezana.toml", name = "toml4j", version = "0.7.2")
implementation(kotlin("stdlib-jdk8"))
testApi(ktor("client-cio", Versions.Kotlin.ktor))
testApi(ktor("client-core", Versions.Kotlin.ktor))
testApi(ktor("network", Versions.Kotlin.ktor))
testApi("net.mamoe:mirai-core-qqandroid-jvm:${Versions.Mirai.core}")
testApi(kotlin("stdlib"))
testApi("org.jsoup:jsoup:1.12.1")
}