io.swagger.codegen.utils.ImplementationVersion Maven / Gradle / Ivy
package io.swagger.codegen.utils;
public class ImplementationVersion {
public static String read() {
// Assumes this version is required at runtime. This could be modified to use a properties file like the CLI.
String compiledVersion = ImplementationVersion.class.getPackage().getImplementationVersion();
if(compiledVersion != null) {
return compiledVersion;
}
return System.getProperty("swagger.implementation.version", "unset");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy