mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
Release version 2.5-RC
This commit is contained in:
parent
f0fefc0657
commit
82b48bfa60
@ -14,8 +14,8 @@ import java.time.Instant
|
|||||||
|
|
||||||
internal object MiraiConsoleBuildConstants { // auto-filled on build (task :mirai-console:fillBuildConstants)
|
internal object MiraiConsoleBuildConstants { // auto-filled on build (task :mirai-console:fillBuildConstants)
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
val buildDate: Instant = Instant.ofEpochSecond(1616230573)
|
val buildDate: Instant = Instant.ofEpochSecond(1616248445)
|
||||||
const val versionConst: String = "2.5-RC-dev-2"
|
const val versionConst: String = "2.5-RC"
|
||||||
|
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
val version: SemVersion = SemVersion(versionConst)
|
val version: SemVersion = SemVersion(versionConst)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2019-2020 Mamoe Technologies and contributors.
|
* Copyright 2019-2021 Mamoe Technologies and contributors.
|
||||||
*
|
*
|
||||||
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
|
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
|
||||||
* Use of this source code is governed by the GNU AFFERO GENERAL PUBLIC LICENSE version 3 license that can be found through the following link.
|
* 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
|
* https://github.com/mamoe/mirai/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
@ -41,14 +41,14 @@ internal fun StackFrame.findLoader(): ClassLoader? {
|
|||||||
}.getOrNull()
|
}.getOrNull()
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
|
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER", "UnusedParameter")
|
||||||
@kotlin.internal.LowPriorityInOverloadResolution
|
@kotlin.internal.LowPriorityInOverloadResolution
|
||||||
internal inline fun <T : Any> T?.ifNull(block: () -> T): T {
|
internal inline fun <T : Any> T?.ifNull(block: () -> T): T {
|
||||||
contract { callsInPlace(block, InvocationKind.AT_MOST_ONCE) }
|
contract { callsInPlace(block, InvocationKind.AT_MOST_ONCE) }
|
||||||
return this ?: block()
|
return this ?: block()
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("DeprecatedCallableAddReplaceWith")
|
@Suppress("DeprecatedCallableAddReplaceWith", "UnusedParameter")
|
||||||
@Deprecated("Useless ifNull on not null value.")
|
@Deprecated("Useless ifNull on not null value.")
|
||||||
@JvmName("ifNull1")
|
@JvmName("ifNull1")
|
||||||
internal inline fun <T : Any> T.ifNull(block: () -> T): T = this
|
internal inline fun <T : Any> T.ifNull(block: () -> T): T = this
|
||||||
|
@ -10,6 +10,6 @@
|
|||||||
package net.mamoe.mirai.console.gradle
|
package net.mamoe.mirai.console.gradle
|
||||||
|
|
||||||
internal object VersionConstants {
|
internal object VersionConstants {
|
||||||
const val CONSOLE_VERSION = "2.5-RC-dev-2" // value is written here automatically during build
|
const val CONSOLE_VERSION = "2.5-RC" // value is written here automatically during build
|
||||||
const val CORE_VERSION = "2.5-RC-dev-2" // value is written here automatically during build
|
const val CORE_VERSION = "2.5-RC" // value is written here automatically during build
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user