Skip to content

Commit 46c3b31

Browse files
fadidurahCopilot
andcommitted
Add gradle configure-on-demand for build perf
When configure-on-demand is enabled, Gradle only configures the projects that are actually in the dependency graph of the requested tasks. Previously building AADAuthenticator triggered configure of broker4j, brokerHost, java-linux-test-app, LinuxBroker, brokerautomationapp etc. — none of which are needed for AADAuthenticator:assembleDistRelease. Logs showed ~16 min spent in unnecessary configure phases. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent baae279 commit 46c3b31

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ android.useAndroidX=true
66
# https://office.visualstudio.com/Outlook%20Mobile/_wiki/wikis/Outlook-Mobile.wiki/3780/Android-Studio-Gradle-Performance-tips-and-tricks
77
org.gradle.parallel=true
88
org.gradle.daemon=true
9+
org.gradle.configureondemand=true
910

1011
# See https://stackoverflow.com/questions/56075455/expiring-daemon-because-jvm-heap-space-is-exhausted
1112
# we must make sure that the total size is <7G, as that's the RAM size of VM on the build pipeline.

0 commit comments

Comments
 (0)