Package io.github.stevenjdh.simple.git
Class BuildInfo
java.lang.Object
io.github.stevenjdh.simple.git.BuildInfo
Git Build Info.
Provides a way to access build information from when the library was created.
- Since:
- 1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the different properties defined in the git.properties file from when the library was built.
-
Constructor Details
-
BuildInfo
public BuildInfo()Default constructor to set a defaultObjectMapper
. -
BuildInfo
public BuildInfo(com.fasterxml.jackson.databind.ObjectMapper mapper) A constructor to set a customObjectMapper
, which is useful for testing.- Parameters:
mapper
- CustomObjectMapper
.
-
-
Method Details
-
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.
-