Disabling Gradle daemon in a specific project

Viewed 8163

I'd like to build certain projects without the use of of Gradle daemon. I've read that this can be done either by command-line argument --no-daemon or by changing Gradle properties under .gradle/. I need to disable it for just some of the projects I build under the root project though.

Is it possible via settings.gradle/build.gradle settings or am I better off making custom build script?

1 Answers

You can simply add org.gradle.daemon=false to a gradle.properties file in the project root folder.

The daemon documentation mainly talks about disabling the daemon altogether on a machine but the gradle properties documentation indicates that the location where a property / value pair is declared is irrelevant, they are sourced from different location, with overwrite rules.

Related