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:
Dominique Padiou
2024-03-20 16:01:45 +01:00
parent 6bffd418e8
commit 9d460eeee5
7 changed files with 77 additions and 14 deletions

View File

@@ -0,0 +1,6 @@
repositories {
mavenCentral()
}
plugins {
`kotlin-dsl`
}

View 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"
}