7

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?

Dropout
  • 13,653
  • 10
  • 56
  • 109
  • can this help: https://stackoverflow.com/questions/47192746/how-can-i-disable-a-task-in-build-gradle – Itamar Kerbel Oct 22 '18 at 11:24
  • @zipo13 I don't want to disable the build tasks, I just want to build the project without the daemon.. but maybe there is a setting for it and it could be applied like this, however I'm struggling to find the setting in the documentation.. – Dropout Oct 22 '18 at 11:40

1 Answers1

11

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.

Louis Jacomet
  • 13,661
  • 2
  • 34
  • 43