Kill all Gradle Daemons Regardless Version?

后端 未结 3 1761
庸人自扰
庸人自扰 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条回答
  •  抹茶落季
    2021-01-03 22:19

    Under linux you may use pkill:

    pkill -f '.*GradleDaemon.*'
    

    Under windows you may use wmic:

    WMIC PROCESS where "Name like 'java%' AND CommandLine like '%GradleDaemon%'" Call Terminate
    

    PS. Why "no scripting" when it is probably the easiest solution?

提交回复
热议问题