Versions.kt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright 2020 Mamoe Technologies and contributors.
  3. *
  4. * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
  5. * Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
  6. *
  7. * https://github.com/mamoe/mirai/blob/master/LICENSE
  8. */
  9. object Versions {
  10. object Mirai {
  11. const val version = "0.37.0"
  12. }
  13. object Kotlin {
  14. const val stdlib = "1.3.71"
  15. const val coroutines = "1.3.5"
  16. const val atomicFU = "0.14.2"
  17. const val serialization = "0.20.0"
  18. const val ktor = "1.3.2"
  19. const val io = "0.1.16"
  20. const val coroutinesIo = "0.1.16"
  21. const val dokka = "0.10.1"
  22. }
  23. object Android {
  24. const val androidGradlePlugin = "3.5.3"
  25. }
  26. object Publishing {
  27. const val bintray = "1.8.5"
  28. }
  29. }
  30. @Suppress("unused")
  31. fun kotlinx(id: String, version: String) = "org.jetbrains.kotlinx:kotlinx-$id:$version"
  32. @Suppress("unused")
  33. fun ktor(id: String, version: String) = "io.ktor:ktor-$id:$version"