application.VersionProvider.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of specmatic-executable Show documentation
Show all versions of specmatic-executable Show documentation
Command-line standalone executable jar for Specmatic
package application
import picocli.CommandLine
import java.util.*
class VersionProvider : CommandLine.IVersionProvider {
override fun getVersion(): Array {
val props = Properties()
SpecmaticCommand::class.java.classLoader.getResourceAsStream("version.properties").use {
props.load(it)
}
return arrayOf(props.getProperty("version"))
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy