git-hooks-gradle-plugin
git-hooks-gradle-plugin copied to clipboard
Should use project JDK as JAVA_HOME
I recently had a problem where my system default JDK was 8 while I was working on projects using JDK 17. Needless to say that some things can fail in that scenario. I had to add at subsequent task that changes the content of the hook to include
export JAVA_HOME=...
which uses the project JDK (or JDK gradle runs under). Ideally this is the default behavior or the plugin should allow some additional user input to be run prior running the gradle tasks.