mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 07:30:14 +08:00
Update versions
This commit is contained in:
parent
dc82abb745
commit
a7b85f98c3
@ -122,13 +122,15 @@ tasks {
|
||||
file.writeText(
|
||||
file.readText()
|
||||
.replace(
|
||||
"""val buildDate: Instant = Instant.ofEpochSecond(0)""",
|
||||
"""val buildDate: Instant = Instant.ofEpochSecond(${Instant.now().getEpochSecond()})"""
|
||||
)
|
||||
Regex("""val buildDate: Instant = Instant.ofEpochSecond\(.*\)""")
|
||||
) {
|
||||
"""val buildDate: Instant = Instant.ofEpochSecond(${
|
||||
Instant.now().getEpochSecond()
|
||||
})"""
|
||||
}
|
||||
.replace(
|
||||
"""val version: Semver = Semver("0", Semver.SemverType.LOOSE)""",
|
||||
"""val version: Semver = Semver("${project.version}", Semver.SemverType.LOOSE)"""
|
||||
)
|
||||
Regex("""val version: Semver = Semver\(".*", Semver.SemverType.LOOSE\)""")
|
||||
) { """val version: Semver = Semver("${project.version}", Semver.SemverType.LOOSE)""" }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -14,8 +14,8 @@ import java.time.Instant
|
||||
|
||||
internal object MiraiConsoleBuildConstants { // auto-filled on build (task :mirai-console:fillBuildConstants)
|
||||
@JvmStatic
|
||||
val buildDate: Instant = Instant.ofEpochSecond(1598539421)
|
||||
val buildDate: Instant = Instant.ofEpochSecond(1599005996)
|
||||
|
||||
@JvmStatic
|
||||
val version: Semver = Semver("1.0-M3-1", Semver.SemverType.LOOSE)
|
||||
val version: Semver = Semver("1.0-M4-dev-3", Semver.SemverType.LOOSE)
|
||||
}
|
||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,5 +1,5 @@
|
||||
#Wed Mar 04 22:27:09 CST 2020
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-all.zip
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStorePath=wrapper/dists
|
||||
|
Loading…
Reference in New Issue
Block a user