git-hooks-gradle-plugin icon indicating copy to clipboard operation
git-hooks-gradle-plugin copied to clipboard

Should use project JDK as JAVA_HOME

Open piacenti opened this issue 2 years ago • 0 comments

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.

piacenti avatar Oct 05 '23 22:10 piacenti