java.lang.Object
net.i2p.CoreVersion

public class CoreVersionextends Object
Expose a version string.

See also: RouterVersion, VersionComparator, and the update subsystem.

  • Field Details

    • ID

      public static final String ID
      Build identifier.
      See Also:
    • VERSION

      public static final String VERSION
      The version used when checking for router updates, and exchanged between router and client over I2CP. This is the marketing and user-visible version.

      If we ever need a point release for a specific architecture only, append ".1" to VERSION and leave PUBLISHED_VERSION unchanged. Otherwise, the same as PUBLISHED_VERSION.

      RouterVersion.FULL_VERSION is suggested for display to the user.

      See Also:
    • PUBLISHED_VERSION

      public static final String PUBLISHED_VERSION
      The version published in the netdb via StatisticsManager. This is the API version.

      It must not go to 1.x for several years, because through 0.9.49, the Sybil analyzer blocked releases that didn't start with "0.9."

      If we ever need a point release for a specific architecture only, append ".1" to VERSION and leave PUBLISHED_VERSION unchanged. Otherwise, the same as VERSION.

      RouterVersion.FULL_VERSION is suggested for display to the user.

      See Also:
  • Constructor Details

    • CoreVersion

      private CoreVersion()
      Private constructor to prevent instantiation.
  • Method Details

    • getVersion

      public static String getVersion()
      For Vuze.
      Returns:
      the full version string, as required by Vuze
    • main

      public static void main(String[] args)
      Entry point for CLI version display.
      Parameters:
      args - command line arguments, unused; the version is always printed for both the core and the published API