Class BuildVersion

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

public class BuildVersion extends Object
Simple class for storing the version derived from the gradle build.gradle file.
  • 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.
    • getGitLastTag

      public static String getGitLastTag()
      returns the closet parent git tag
    • getGitLastTagDate

      public static String getGitLastTagDate()
      returns date of commit of last git tag
    • getGitCommitsSinceLastTag

      public static int getGitCommitsSinceLastTag()
      returns number of commits since last git tag
    • getDetailedVersion

      public static String getDetailedVersion()
    • getVersionAsJSON

      public static String getVersionAsJSON()