Kill all Gradle Daemons Regardless Version?

后端 未结 3 1775
庸人自扰
庸人自扰 2021-01-03 21:35

Summary

I would like to know how to kill every single gradle daemon and process running on a machine regardless of the version of gradle or the vers

3条回答
  •  梦毁少年i
    2021-01-03 22:26

    The gradle --status command will show you the process ids for each of the daemons. You can then use your OS to kill those processes.

    I'm assuming this is cross-platform functionality, but this is the output on Windows:

      PID STATUS   INFO
    10276 IDLE     5.4.1
    14068 IDLE     5.4.1
    

    It's a bit better than playing whack-a-mole with every java.exe process running on your system. Although it would be nice if gradle had a command that could terminate all running gradle daemons built-in.

提交回复
热议问题