All Downloads are FREE. Search and download functionalities are using the official Maven repository.

application.VersionProvider.kt Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
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 - 2025 Weber Informatics LLC | Privacy Policy