GitProperties

Provide git-related information such as commit id and time.

Author

Stephane Nicoll

Since

1.4.0

Constructors

Link copied to clipboard
constructor(entries: Properties)

Functions

Link copied to clipboard
open fun forEach(action: Consumer<in T>)
Link copied to clipboard
open fun get(key: String): String
Return the value of the specified property or null.
Link copied to clipboard
open fun getBranch(): String
Return the name of the branch or null.
Link copied to clipboard
open fun getCommitId(): String
Return the full id of the commit or null.
Link copied to clipboard
Return the timestamp of the commit or null.
Link copied to clipboard
open fun getInstant(key: String): Instant
Return the value of the specified property as an Instant or null if the value is not a valid Long representation of an epoch time.
Link copied to clipboard
Return the abbreviated id of the commit or null.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Return a PropertySource of this instance.