palantir / gradle-git-version

a Gradle plugin that uses `git describe` to produce a version string.
Apache License 2.0
365 stars 76 forks source link

Cache results of git commands #799

Open pkoenig10 opened 2 months ago

pkoenig10 commented 2 months ago

https://github.com/palantir/gradle-git-version/pull/684 introduced caching for the construction of VersionDetails, but not for the actual Git commands. Actually running the Git commands is the most expensive part of computing the version, so we're not deriving much benefit if we're not caching those.