Disabling Gradle daemon in a specific project

北慕城南 提交于 2021-01-27 14:44:58

问题


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:


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.



来源:https://stackoverflow.com/questions/52928108/disabling-gradle-daemon-in-a-specific-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!