Skip to content

Commit

Permalink
Update jars
Browse files Browse the repository at this point in the history
  • Loading branch information
pambrose committed Dec 11, 2024
1 parent 18f1674 commit 3d540fd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ prometheus_version=0.16.0
proxy_version=1.23.1
sendgrid_version=4.10.2
serialization_version=1.7.3
utils_version=2.3.4
utils_version=2.3.6
1 change: 1 addition & 0 deletions readingbat-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ buildConfig {
buildConfigField('String', 'CORE_NAME', "\"${project.name}\"")
buildConfigField('String', 'CORE_VERSION', "\"${project.version}\"")
buildConfigField('String', 'CORE_RELEASE_DATE', "\"12/3/24\"")
buildConfigField("long", "BUILD_TIME", "${System.currentTimeMillis()}L")
}

// Include build uberjars in heroku deploy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
package com.github.readingbat.server

import com.github.pambrose.common.util.FileSource
import com.github.pambrose.common.util.Version
import com.github.pambrose.common.util.Version.Companion.versionDesc
import com.github.pambrose.common.util.Version2
import com.github.pambrose.common.util.Version2.Companion.versionDesc2
import com.github.pambrose.common.util.getBanner
import com.github.pambrose.common.util.isNotNull
import com.github.pambrose.common.util.isNull
Expand Down Expand Up @@ -81,7 +81,11 @@ import kotlin.time.Duration.Companion.seconds
import kotlin.time.TimeSource
import kotlin.time.measureTime

@Version(version = BuildConfig.CORE_VERSION, date = BuildConfig.CORE_RELEASE_DATE)
@Version2(
version = BuildConfig.CORE_VERSION,
releaseDate = BuildConfig.CORE_RELEASE_DATE,
buildTime = BuildConfig.BUILD_TIME,
)
object ReadingBatServer {
val metrics by lazy { Metrics() }
internal val logger = KotlinLogging.logger {}
Expand Down Expand Up @@ -177,7 +181,7 @@ object ReadingBatServer {
fun start(args: Array<String>) {
logger.apply {
info { getBanner("banners/readingbat.banner", this) }
info { ReadingBatServer::class.versionDesc() }
info { ReadingBatServer::class.versionDesc2() }
callerVersion = callerVersion(args)
info { "Caller Version: $callerVersion" }
}
Expand Down

0 comments on commit 3d540fd

Please sign in to comment.