Repository navigation
Enable the Gradle build cache - #10602
Conversation
| org.gradle.configureondemand=true | ||
| # explicitly disable the configuration cache | ||
| org.gradle.unsafe.configuration-cache=false | ||
| #org.gradle.unsafe.configuration-cache-problems=warn |
| # enable the Gradle build cache | ||
| org.gradle.caching=true | ||
| # enable Gradle parallel builds | ||
| org.gradle.parallel=true | ||
| # configure only necessary Gradle tasks | ||
| org.gradle.configureondemand=true | ||
| # explicitly disable the configuration cache | ||
| org.gradle.unsafe.configuration-cache=false |
There was a problem hiding this comment.
The meaning of the configuration is something a reader will be able to look up. These comments are OK, but it would be great to capture the reasoning -- the rationale why we're setting these configuration the way we're setting them. This is important in case someone thinks it would be good to change them further. The rationale informs what to watch out for.
There was a problem hiding this comment.
+1 on adding some reasoning as to why certain things are enabled
| # enable the Gradle build cache | ||
| org.gradle.caching=true | ||
| # enable Gradle parallel builds | ||
| org.gradle.parallel=true | ||
| # configure only necessary Gradle tasks | ||
| org.gradle.configureondemand=true | ||
| # explicitly disable the configuration cache | ||
| org.gradle.unsafe.configuration-cache=false |
There was a problem hiding this comment.
i am not very familiar with gradle configuration. what is the meaning of "unsafe" in the config option name?
There was a problem hiding this comment.
Considered "unsafe" to use. It's a property name defined by Gradle.
| org.gradle.configureondemand=true | ||
| # explicitly disable the configuration cache | ||
| org.gradle.configuration-cache=false | ||
| #org.gradle.configuration-cache-problems=warn |
There was a problem hiding this comment.
I'd remove this line as I don't see a good enough reason to keep it here
... and explicitly disable the Gradle configuration cache.
... and explicitly disable the Gradle configuration cache.