Update versions

This commit is contained in:
Him188 2020-09-02 08:24:17 +08:00
parent dc82abb745
commit a7b85f98c3
3 changed files with 11 additions and 9 deletions

View File

@ -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)""" }
)
}
}

View File

@ -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)
}

View File

@ -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