Class Version

java.lang.Object
io.netty.util.Version

public final class Version extends Object
Retrieves the version information of available Netty artifacts.

This class retrieves the version information from META-INF/io.netty.versions.properties, which is generated in build time. Note that it may not be possible to retrieve the information completely, depending on your environment, such as the specified ClassLoader, the current SecurityManager.

  • Method Details

    • identify

      public static Map<String,Version> identify()
      Retrieves the version information of Netty artifacts using the current context class loader.
      Returns:
      A Map whose keys are Maven artifact IDs and whose values are Versions
    • identify

      public static Map<String,Version> identify(ClassLoader classLoader)
      Retrieves the version information of Netty artifacts using the specified ClassLoader.
      Returns:
      A Map whose keys are Maven artifact IDs and whose values are Versions
    • main

      public static void main(String[] args)
      Prints the version information to System.err.
    • artifactId

      public String artifactId()
    • artifactVersion

      public String artifactVersion()
    • buildTimeMillis

      public long buildTimeMillis()
    • commitTimeMillis

      public long commitTimeMillis()
    • shortCommitHash

      public String shortCommitHash()
    • longCommitHash

      public String longCommitHash()
    • repositoryStatus

      public String repositoryStatus()
    • toString

      public String toString()
      Overrides:
      toString in class Object