From 9816263d5233bbd9e3408f3354ac1330c5e993a6 Mon Sep 17 00:00:00 2001 From: Bernardo Gomez Palacio Date: Fri, 12 Nov 2021 10:39:59 -0800 Subject: [PATCH] Tune Gradle to make our builds much faster * `org.gradle.parallel`: Enabling parallel builds makes the build considerably faster, that said, we need to make sure tests don't depend on each other, which should be already the case. * `org.gradle.vfs.watch`: Since Gradle 6.5, avoids unnecessary I/O. * `org.gradle.caching`: Shared caches can reduce the number of tasks we need to execute by reusing outputs already generated. This can significantly decrease build times but we need to make sure our tests do not depend on other external services, which is already the case. --- gradle.properties | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index f34b96935..fbc7c99ec 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,4 +14,9 @@ # limitations under the License. # systemProp.nebula.features.coreBomSupport=true -kotlin.code.style=official \ No newline at end of file +kotlin.code.style=official + +org.gradle.caching = true +org.gradle.parallel = true +# org.gradle.configureondemand = true +org.gradle.vfs.watch = true