Breaking Changes
Default output directory changed — generateGitProperties 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
processResourcesis now automatically wired to depend ongenerateGitPropertieswhen thejavaplugin is applied — no manualdependsOnneededbuild/generated/resources/git/is auto-registered as a resource source directorygitPropertiesDirproperty is deprecated — usegitPropertiesResourceDirinstead
Fixed
- Overlapping task outputs (#212, #233) —
git.propertieswas silently deleted on alternatingclean buildruns when the Gradle build cache was enabled (Gradle 8.6+)