Class BuildInfo

java.lang.Object
org.apache.druid.server.BuildInfo

public class BuildInfo extends Object
Utility class for reading build metadata from the JAR manifest.
  • Method Details

    • getBuildRevision

      public static String getBuildRevision()
      Reads the Build-Revision attribute from the META-INF/MANIFEST.MF of the JAR that contains this class. Returns an empty string when running outside a packaged JAR (e.g., during mvn test).