使用 Intellij 时,在 macOS dock 上隐藏 Gradle 守护进程的 Java 图标?
Hide Gradle daemon's Java icon on macOS dock when using Intellij?
我是 Intellij、macOS 和 gradle 的新手,想从与 gradle 守护进程相关联的 macOS dock 中隐藏 Java 图标。在我的 zshenv(类似于 bashrc 或 bash_profile)中设置 JAVA_TOOL_OPTIONS="-Dapple.awt.UIElement=true
(如 here 所述)在命令行 运行 时就足够了,但在 [=29 时不起作用=] 来自 Intellij 的构建。
我也尝试使用 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) 设置守护程序标志,但没有效果。
确定有一种简单的方法可以做到这一点吗?
在项目根目录的 gradle.properties
文件中设置 属性 如 systemProp.apple.awt.UIElement=true
应该可以。
我是 Intellij、macOS 和 gradle 的新手,想从与 gradle 守护进程相关联的 macOS dock 中隐藏 Java 图标。在我的 zshenv(类似于 bashrc 或 bash_profile)中设置 JAVA_TOOL_OPTIONS="-Dapple.awt.UIElement=true
(如 here 所述)在命令行 运行 时就足够了,但在 [=29 时不起作用=] 来自 Intellij 的构建。
我也尝试使用 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) 设置守护程序标志,但没有效果。
确定有一种简单的方法可以做到这一点吗?
在项目根目录的 gradle.properties
文件中设置 属性 如 systemProp.apple.awt.UIElement=true
应该可以。