I want to speed up the build process of the Gradle
project, read that you can add a line of code in the gradle.properties
: org.gradle.daemon=true
and the project will be assembled faster. As far as I understand, the file gradle.properties
should be located in the /Users/<username>/.gradle/
directory for Mac
, but when I go this way, I have 4 folders there: caches, daemon, native, wrapper. The question is where in such cases gradle.properties
?
- put this file next to build.gradle - Artem Konovalov
- @ArtemKonovalov Create a text file called grade.properties and put it next to build.gradle in the project? - Lucky_girl
- if not, yes. In general, look at some project on gradle and verify that you have, for example, this github.com/ben-manes/caffeine - Artem Konovalov
- @ArtemKonovalov Made, the project was going to 2 times longer than usual. - Lucky_girl
- @Licky_girl definitely has progress)) - Artem Konovalov
|
1 answer
You just need to create gralde.properties
there if it does not exist.
In addition, Gradle 3.0 was released, in which deamon is enabled by default .
|