Reputation: 502
I'm new to Intellij, macOS, and gradle, and would like to hide the Java icons from the macOS dock associated the gradle daemon processes. Setting JAVA_TOOL_OPTIONS="-Dapple.awt.UIElement=true
(as described here) in my zshenv (similar to bashrc or bash_profile) is sufficient when running from the command line, but does not work when running the build from Intellij.
I also tried setting the daemon flags using org.gradle.jvmargs
with the same flag (org.gradle.jvmargs=-Dapple.awt.UIElement=true
) in my home gradle.properties file, but all -D
flags are somehow stripped out (regardless of whether or not it's being run from the terminal or from Intellij, which seems like its own issue, given that you should be able to set -D
flags with this parameter), and thus has no effect.
Surely there is an easy way to do this?
Upvotes: 1
Views: 427
Reputation: 16411
Setting the property like systemProp.apple.awt.UIElement=true
in gradle.properties
file in project root directory should work.
Upvotes: 2