Class BuildInfo

java.lang.Object
io.github.stevenjdh.simple.git.BuildInfo

public final class BuildInfo extends Object
Git Build Info.

Provides a way to access build information from when the library was created.

Since:
1.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor to set a default ObjectMapper.
    BuildInfo(com.fasterxml.jackson.databind.ObjectMapper mapper)
    A constructor to set a custom ObjectMapper, which is useful for testing.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the different properties defined in the git.properties file from when the library was built.

    Methods inherited from class java.lang.Object

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

    • BuildInfo

      public BuildInfo()
      Default constructor to set a default ObjectMapper.
    • BuildInfo

      public BuildInfo(com.fasterxml.jackson.databind.ObjectMapper mapper)
      A constructor to set a custom ObjectMapper, which is useful for testing.
      Parameters:
      mapper - Custom ObjectMapper.
  • Method Details

    • getGitProperties

      public GitProperties getGitProperties()
      Gets the different properties defined in the git.properties file from when the library was built.
      Returns:
      Object instance containing git properties.
      Throws:
      UncheckedIOException - If there was an I/O problem with reading the git.properties file.