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

io.swagger.codegen.utils.ImplementationVersion Maven / Gradle / Ivy

There is a newer version: 3.0.0-rc1
Show newest version
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