Package com.onec.ui

Class OnecBuildInfo

java.lang.Object
com.onec.ui.OnecBuildInfo

public final class OnecBuildInfo extends Object
The onec-framework version this build was produced from, baked into META-INF/onec-build.properties by the processResources step. Read once, statically, so it is cheap to consult.

Returns an empty string when the version is unknown — e.g. running from an IDE that skipped the Gradle resource-filtering, leaving the ${onecVersion} token unsubstituted. Callers treat "unknown" as "can't compare", which keeps the update check from ever signalling a false positive.

  • Method Details

    • version

      public static String version()
      The framework version, or "" when it could not be determined.