![JAR search and dependency download from the Maven repository](/logo.png)
io.mongock.cli.core.VersionProvider Maven / Gradle / Ivy
package io.mongock.cli.core;
import picocli.CommandLine;
import java.util.Properties;
public class VersionProvider implements CommandLine.IVersionProvider {
@Override
public String[] getVersion() throws Exception {
final Properties properties = new Properties();
properties.load(this.getClass().getClassLoader().getResourceAsStream("cli.properties"));
return new String[]{properties.getProperty("version")};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy