Get application version in Ktor
I’m using Ktor for developing a backend microservice and in build.gradle.kts
file I set version = "1.0.0"
, now in the code, I wanna get this value. Is there any solution?
How to specify command line arguments to a Kotlin/Ktor app using ./gradlew?
I am building a standard Kotlin with Ktor application. I want to specify a different conf file in different situations. The documentation suggests how to do this by executing the jar directly.