github n0mer/gradle-git-properties v4.0.0

5 hours ago

Breaking Changes

Default output directory changedgenerateGitProperties now writes to build/generated/resources/git/ instead of build/resources/main/. The file still ends up at the root of your JAR — processResources copies it there automatically.

See the Migration Guide for full details.

What Changed

  • processResources is now automatically wired to depend on generateGitProperties when the java plugin is applied — no manual dependsOn needed
  • build/generated/resources/git/ is auto-registered as a resource source directory
  • gitPropertiesDir property is deprecated — use gitPropertiesResourceDir instead

Fixed

  • Overlapping task outputs (#212, #233) — git.properties was silently deleted on alternating clean build runs when the Gradle build cache was enabled (Gradle 8.6+)

Full Changelog

v.3.0.3...v4.0.0

Don't miss a new gradle-git-properties release

NewReleases is sending notifications on new releases.