Skip to content

A fully functional Android app built entirely with Kotlin and Jetpack Compose

Enable gradle project isolation (#2139)

Aurimas12f80da6518e
diff --git a/.github/ci-gradle.properties b/.github/ci-gradle.properties
index a9abe496a..35fe3fea4 100644
--- a/.github/ci-gradle.properties
+++ b/.github/ci-gradle.properties
@@ -16,9 +16,10 @@
org.gradle.daemon=false
org.gradle.parallel=true
-org.gradle.workers.max=2
+org.gradle.workers.max=3
org.gradle.configuration-cache=true
org.gradle.configuration-cache.parallel=true
+org.gradle.isolated-projects=true
kotlin.incremental=false
diff --git a/gradle.properties b/gradle.properties
index d933fc6cb..026e0ce59 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -31,9 +31,6 @@ kotlin.daemon.jvmargs=-Dfile.encoding=UTF-8 -XX:+UseG1GC -XX:SoftRefLRUPolicyMSP
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
org.gradle.parallel=true
-# Not encouraged by Gradle and can produce weird results. Wait for isolated projects instead.
-org.gradle.configureondemand=false
-
# Enable caching between builds.
org.gradle.caching=true
@@ -42,6 +39,9 @@ org.gradle.configuration-cache=true
org.gradle.configuration-cache.parallel=true
org.gradle.configuration-cache.problems=fail
+# Enable isolated projects for parallel configuration.
+org.gradle.isolated-projects=true
+
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app"s APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn