breautek commented on issue #982:
URL: https://github.com/apache/cordova-android/issues/982#issuecomment-636568876
If you really want to kill the gradle daemon after each build, an easy way
to do this would be to add the following in your `package.json` file:
```
...
{
"scripts": {
"build-android": "cordova build android && gradle --stop"
}
}
```
Then you can build using: `npm run build-android`
But you needn’t worry about a build up of Gradle processes on your machine,
though. Every Daemon monitors its memory usage compared to total system memory
and will stop itself if idle when available system memory is low. According to
[Gradle
Documentation](https://docs.gradle.org/current/userguide/gradle_daemon.html#sec:stopping_an_existing_daemon).
May I ask why you would like to disable the Gradle daemon?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]