Class BuildInfo

java.lang.Object
org.frontcache.license.BuildInfo

public final class BuildInfo extends Object
The version and release date this jar was built as - read from org/frontcache/build-info.properties, which the build generates from version.properties (see generateBuildInfo in build.gradle).

Why a release date at all

It is the half of the perpetual-fallback check that the customer cannot move: a license is valid for a build when the build was released on or before the license's updates-until. Both sides of that comparison are fixed at signing / build time, so setting the clock back changes nothing. The date is release-date from version.properties when it is set (the release cut sets it), and the build day otherwise. A development build therefore carries "today", which is the honest answer: it was released, to whoever built it, today.

Unknown is a value

Classes compiled by an IDE without running the Gradle resource step have no build-info at all. That yields UNKNOWN_VERSION and a null release date, and the license check skips the updates-until comparison rather than failing it - a missing resource must not read as an expired subscription.
  • Field Details

  • Method Details

    • current

      public static BuildInfo current()
    • getVersion

      public String getVersion()
      The Frontcache version, or UNKNOWN_VERSION.
    • getReleaseDate

      public LocalDate getReleaseDate()
      The day this build was released, or null when the jar carries no build-info.
    • toString

      public String toString()
      Overrides:
      toString in class Object