Version

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Version(val version: String, val releaseDate: String, val buildTime: Long)

Runtime annotation for embedding version metadata on a class.

Apply this annotation to a class to store its version, release date, and build timestamp. Use the companion extension functions on KClass to retrieve and format this information.

Parameters

version

the semantic version string (e.g., "2.8.1")

releaseDate

the release date string (e.g., "2026-04-10")

buildTime

the build timestamp in epoch milliseconds

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard