From 3f58384f1fdd9ebcf79470518711f6bf10c69e40 Mon Sep 17 00:00:00 2001 From: fadidurah Date: Thu, 14 May 2026 03:03:48 -0400 Subject: [PATCH 1/5] Build: publish libraries directly to NewAndroid feed Switches Maven publishing from the AndroidADAL feed to the NewAndroid feed to eliminate the upstream-feed traversal latency that occurs when downstream pipeline stages resolve freshly-published artifacts. Background: - Builds publish to AndroidADAL but consumers fetch from NewAndroid. - NewAndroid resolves AndroidADAL only via its upstream chain, after walking Maven Central, Google, etc., causing first-fetch latency on every newly published version (which CI agents always pay due to ephemeral caches). - AndroidADAL will be added as an upstream of NewAndroid (done outside this change) so any external consumers still resolving from AndroidADAL keep working transparently. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- msal/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msal/build.gradle b/msal/build.gradle index a95407165..a783a40f2 100644 --- a/msal/build.gradle +++ b/msal/build.gradle @@ -415,7 +415,7 @@ afterEvaluate { repositories { maven { name "vsts-maven-adal-android" - url "https://identitydivision.pkgs.visualstudio.com/_packaging/AndroidADAL/maven/v1" + url "https://identitydivision.pkgs.visualstudio.com/_packaging/NewAndroid/maven/v1" credentials { username System.getenv("ENV_VSTS_MVN_CRED_USERNAME") != null ? System.getenv("ENV_VSTS_MVN_CRED_USERNAME") : project.findProperty("vstsUsername") password System.getenv("ENV_VSTS_MVN_CRED_ACCESSTOKEN") != null ? System.getenv("ENV_VSTS_MVN_CRED_ACCESSTOKEN") : project.findProperty("vstsMavenAccessToken") From 35f1dbb6293c89f245f50a759027ecb6e76a46b9 Mon Sep 17 00:00:00 2001 From: fadidurah Date: Thu, 14 May 2026 23:33:53 -0400 Subject: [PATCH 2/5] Add gradle configure-on-demand for build perf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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> --- gradle.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/gradle.properties b/gradle.properties index 329e4c773..9da7fae4d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,6 +7,7 @@ android.enableJetifier=true # 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 # See https://stackoverflow.com/questions/56075455/expiring-daemon-because-jvm-heap-space-is-exhausted # we must make sure that the total size is <7G, as that's the RAM size of VM on the build pipeline. From 0e927402433812f986e0a0e90c831ab2c3e98192 Mon Sep 17 00:00:00 2001 From: fadidurah Date: Thu, 21 May 2026 12:45:05 -0400 Subject: [PATCH 3/5] common --- common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common b/common index a68f49563..28adbb7cd 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit a68f495634dea8d237ce9444d9166c89d6f7ff1e +Subproject commit 28adbb7cddba801c0bb875dd80681c1a3d462948 From c545ebe901e74b94ae78d5f377858fba89fa9e6b Mon Sep 17 00:00:00 2001 From: fadidurah Date: Wed, 27 May 2026 15:57:33 -0400 Subject: [PATCH 4/5] Revert "Build: publish libraries directly to NewAndroid feed" This reverts commit 3f58384f1fdd9ebcf79470518711f6bf10c69e40. --- msal/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msal/build.gradle b/msal/build.gradle index a783a40f2..a95407165 100644 --- a/msal/build.gradle +++ b/msal/build.gradle @@ -415,7 +415,7 @@ afterEvaluate { repositories { maven { name "vsts-maven-adal-android" - url "https://identitydivision.pkgs.visualstudio.com/_packaging/NewAndroid/maven/v1" + url "https://identitydivision.pkgs.visualstudio.com/_packaging/AndroidADAL/maven/v1" credentials { username System.getenv("ENV_VSTS_MVN_CRED_USERNAME") != null ? System.getenv("ENV_VSTS_MVN_CRED_USERNAME") : project.findProperty("vstsUsername") password System.getenv("ENV_VSTS_MVN_CRED_ACCESSTOKEN") != null ? System.getenv("ENV_VSTS_MVN_CRED_ACCESSTOKEN") : project.findProperty("vstsMavenAccessToken") From 511fa05f97f1ba67fd97848efba087b29d0549fa Mon Sep 17 00:00:00 2001 From: fadidurah Date: Wed, 27 May 2026 15:57:39 -0400 Subject: [PATCH 5/5] Bump common submodule to revert feed change --- common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common b/common index 28adbb7cd..f005147a7 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 28adbb7cddba801c0bb875dd80681c1a3d462948 +Subproject commit f005147a7d82ec5b3de1e5c673cd7fd965b431a3