mirai/buildSrc/src/main/kotlin/versions.kt
Him188 e813b27227 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	buildSrc/src/main/kotlin/versions.kt
2020-05-06 14:41:57 +08:00

33 lines
1.0 KiB
Kotlin

import org.gradle.kotlin.dsl.DependencyHandlerScope
/*
* Copyright 2020 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
object Versions {
object Mirai {
const val core = "1.0-RC"
const val console = "0.5.0"
const val consoleGraphical = "0.0.7"
const val consoleWrapper = "1.0.0"
}
object Kotlin {
const val stdlib = "1.3.71"
const val coroutines = "1.3.5"
const val serialization = "0.20.0"
const val ktor = "1.3.2"
}
}
@Suppress("unused")
fun DependencyHandlerScope.kotlinx(id: String, version: String) = "org.jetbrains.kotlinx:kotlinx-$id:$version"
@Suppress("unused")
fun DependencyHandlerScope.ktor(id: String, version: String = Versions.Kotlin.ktor) = "io.ktor:ktor-$id:$version"