From 21a18aebb52e0778d39398a2278c2e3512e538d0 Mon Sep 17 00:00:00 2001 From: fadidurah Date: Fri, 15 May 2026 11:40:47 -0400 Subject: [PATCH] Add gradle configure-on-demand for build perf Test app builds (BrokerHost, msalTestApp, msalAutomationApp) and other meta-builds rooted at android-complete were spending 10-17 minutes per Gradle invocation just configuring sibling subprojects (e.g. :common, :common4j, :msal, :LabApiUtilities) that the requested task did not actually depend on. configure-on-demand makes Gradle only configure projects that are in the dependency graph of the requested tasks. This matches the same flag already added to common, broker, and msal repos for their library builds. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- gradle.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/gradle.properties b/gradle.properties index 67f91b5e..51e432ab 100755 --- a/gradle.properties +++ b/gradle.properties @@ -7,6 +7,7 @@ android.nonFinalResIds=false # https://office.visualstudio.com/Outlook%20Mobile/_wiki/wikis/Outlook-Mobile.wiki/3780/Android-Studio-Gradle-Performance-tips-and-tricks org.gradle.parallel=true org.gradle.daemon=true +org.gradle.configureondemand=true org.gradle.warning.mode=all android.defaults.buildfeatures.buildconfig=true