Class BuildVersion

java.lang.Object
edu.sc.seis.seedCodec.BuildVersion

public class BuildVersion extends Object
Simple class for storing the version derived from the gradle build.gradle file.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    returns the date this file was generated, usually the last date that the project was modified.
    static String
     
    static String
    returns the git date when this file was generated, usually the last git revision when the project was modified.
    static String
    returns the git revision when this file was generated, usually the last git revision when the project was modified.
    static String
    returns the git sha when this file was generated, usually the last git revision when the project was modified.
    static String
    returns the short git sha when this file was generated, usually the last git revision when the project was modified.
    static String
    returns the group of the project from the gradle build.gradle file.
    static String
    returns the name of the project from the gradle build.gradle file.
    static String
    returns the version of the project from the gradle build.gradle file.
    static String
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BuildVersion

      public BuildVersion()
  • Method Details

    • getVersion

      public static String getVersion()
      returns the version of the project from the gradle build.gradle file.
    • getName

      public static String getName()
      returns the name of the project from the gradle build.gradle file.
    • getGroup

      public static String getGroup()
      returns the group of the project from the gradle build.gradle file.
    • getDate

      public static String getDate()
      returns the date this file was generated, usually the last date that the project was modified.
    • getGitRevision

      public static String getGitRevision()
      returns the git revision when this file was generated, usually the last git revision when the project was modified.
    • getGitShortSha

      public static String getGitShortSha()
      returns the short git sha when this file was generated, usually the last git revision when the project was modified.
    • getGitSha

      public static String getGitSha()
      returns the git sha when this file was generated, usually the last git revision when the project was modified.
    • getGitDate

      public static String getGitDate()
      returns the git date when this file was generated, usually the last git revision when the project was modified.
    • getDetailedVersion

      public static String getDetailedVersion()
    • getVersionAsJSON

      public static String getVersionAsJSON()