There’s no public API to stop daemons at the moment. We have some internal classes which you could look into e.g. DaemonLogsAnalyzer. It allows you to point to a daemon base directory (usually ~/.gradle/daemon/<version>
) and kill the daemons with the method killAll()
.
1 Like