Package edu.sc.seis.TauP
Class BuildVersion
java.lang.Object
edu.sc.seis.TauP.BuildVersion
Simple class for storing the version derived from the gradle build.gradle file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetDate()returns the date this file was generated, usually the last date that the project was modified.static Stringstatic intreturns number of commits since last git tagstatic Stringreturns the git date when this file was generated, usually the last git revision when the project was modified.static Stringreturns the closet parent git tagstatic Stringreturns date of commit of last git tagstatic Stringreturns the git revision when this file was generated, usually the last git revision when the project was modified.static Stringreturns the git sha when this file was generated, usually the last git revision when the project was modified.static Stringreturns the short git sha when this file was generated, usually the last git revision when the project was modified.static StringgetGroup()returns the group of the project from the gradle build.gradle file.static StringgetName()returns the name of the project from the gradle build.gradle file.static Stringreturns the version of the project from the gradle build.gradle file.static String
-
Constructor Details
-
BuildVersion
public BuildVersion()
-
-
Method Details
-
getVersion
returns the version of the project from the gradle build.gradle file. -
getName
returns the name of the project from the gradle build.gradle file. -
getGroup
returns the group of the project from the gradle build.gradle file. -
getDate
returns the date this file was generated, usually the last date that the project was modified. -
getGitRevision
returns the git revision when this file was generated, usually the last git revision when the project was modified. -
getGitShortSha
returns the short git sha when this file was generated, usually the last git revision when the project was modified. -
getGitSha
returns the git sha when this file was generated, usually the last git revision when the project was modified. -
getGitDate
returns the git date when this file was generated, usually the last git revision when the project was modified. -
getGitLastTag
returns the closet parent git tag -
getGitLastTagDate
returns date of commit of last git tag -
getGitCommitsSinceLastTag
public static int getGitCommitsSinceLastTag()returns number of commits since last git tag -
getDetailedVersion
-
getVersionAsJSON
-