mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 08:50:15 +08:00
47 lines
1.3 KiB
Kotlin
47 lines
1.3 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 = "0.30.0"
|
|
const val console = "0.3.6"
|
|
const val consoleWrapper = "0.1.3"
|
|
}
|
|
|
|
object Kotlin {
|
|
const val stdlib = "1.4-M1"
|
|
const val coroutines = "1.3.5-1.4-M1"
|
|
const val atomicFU = "0.14.2-1.4-M1"
|
|
const val serialization = "0.20.0-1.4-M1"
|
|
const val ktor = "1.3.2-1.4-M1"
|
|
|
|
const val io = "0.1.16"
|
|
const val coroutinesIo = "0.1.16"
|
|
const val dokka = "0.10.1"
|
|
}
|
|
|
|
object Android {
|
|
const val androidGradlePlugin = "3.5.3"
|
|
}
|
|
|
|
object Publishing {
|
|
const val bintray = "1.8.4-jetbrains-3"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@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"
|