Add version in log, command and api
A task has been added to generate a BuildVersions file when building the project. Project's version can be found in that file at runtime. Also centralized declaration of the dependencies versions to buildSrc.
This commit is contained in:
6
buildSrc/build.gradle.kts
Normal file
6
buildSrc/build.gradle.kts
Normal file
@@ -0,0 +1,6 @@
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
plugins {
|
||||
`kotlin-dsl`
|
||||
}
|
||||
9
buildSrc/src/main/kotlin/Versions.kt
Normal file
9
buildSrc/src/main/kotlin/Versions.kt
Normal file
@@ -0,0 +1,9 @@
|
||||
object Versions {
|
||||
val kotlin = "1.9.23"
|
||||
val lightningKmp = "1.6.2-FEECREDIT-2-SNAPSHOT"
|
||||
val sqlDelight = "2.0.1"
|
||||
val okio = "3.8.0"
|
||||
val clikt = "4.2.2"
|
||||
val ktor = "2.3.8"
|
||||
fun ktor(module: String) = "io.ktor:ktor-$module:$ktor"
|
||||
}
|
||||
Reference in New Issue
Block a user