Class VersionUtil

java.lang.Object
VersionUtil

public class VersionUtil extends Object
Utility to surface project version information. Reads the /version.properties file from the classpath and exposes the getVersion() helper. If the file cannot be read, returns "unknown".
  • Method Details

    • getVersion

      public static String getVersion()
      Returns the version of the application.

      This method provides access to the version information that was loaded from the properties file. If the properties file could not be found or an error occurred, it returns "unknown".

      Returns:
      The version of the application.