作者:妮子爱笨蛋 | 来源:互联网 | 2023-05-19 02:01
IneedtodisabletheGradledaemoninIntelliJIdea,becausesomehowScalapluginisnotworkingwi
I need to disable the Gradle daemon in IntelliJ Idea, because somehow Scala plugin is not working with the daemon (the compilation fails with NullPointerException
). I have tried to edit my IntelliJ Gradle build configurations to include a JVM system parameter -Dorg.gradle.daemon=false
:
我需要在IntelliJ Idea中禁用Gradle守护进程,因为Scala插件不能与守护进程一起使用(编译因NullPointerException而失败)。我试图编辑我的IntelliJ Gradle构建配置以包含JVM系统参数-Dorg.gradle.daemon = false:
![enter image description here](https://www.#.com/go/aHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS94NFA5OC5wbmc=)
Also I've tried to use --no-daemon
flag at the same place (Script parameters and VM options). Also I've tried to specify these options in the Preferences -> Gradle
menu of IntelliJ. None of these attempts gave any result, the daemon continue to start, so I have to kill it before running/compiling
for the second time.
此外,我尝试在同一个地方使用--no-daemon标志(脚本参数和VM选项)。我也尝试在IntelliJ的Preferences - > Gradle菜单中指定这些选项。这些尝试都没有给出任何结果,守护进程继续启动,所以我必须在第二次运行/编译之前杀死它。
![enter image description here](https://www.#.com/go/aHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS9zeUJnQy5wbmc=)
Neither disabling daemon explicit in ~/.gradle/gradle.properties
according to https://docs.gradle.org/current/userguide/gradle_daemon.html#N10473 doesn't have any effect.
根据https://docs.gradle.org/current/userguide/gradle_daemon.html#N10473,在〜/ .gradle / gradle.properties中禁用守护进程都没有任何效果。
How can I disable the Gradle daemon usage in IntelliJ Idea?
如何禁用IntelliJ Idea中的Gradle守护程序用法?
1 个解决方案