mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-23 22:00:10 +08:00
33 lines
1.0 KiB
Kotlin
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"
|