Commit a4ad7f0
Build perf: enable Gradle configure-on-demand, Fixes AB#3609347 (#2512)
[AB#3609347](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/3609347)
## Summary
Switches Maven publishing from the `AndroidADAL` feed to the
`NewAndroid` feed to eliminate upstream-feed traversal latency on
dependency resolution in CI.
## Why
- We publish artifacts to **AndroidADAL** but consumers (including
downstream pipeline stages in the same release) fetch from
**NewAndroid**.
- `NewAndroid` only has `AndroidADAL` configured as an upstream,
**after** Maven Central / Google / etc. Every newly-published version
pays a full upstream walk on first resolve.
- CI agents are ephemeral (no Gradle cache reuse), so pipelines pay this
penalty on every run for every fresh dependency.
- Publishing **directly to NewAndroid** removes the upstream walk and
speeds up chained library/test-app builds.
## Companion changes
- `AndroidADAL` will be added as an **upstream of NewAndroid** (manual
step in ADO Artifacts UI, outside this PR) so any external consumers
still resolving from AndroidADAL keep working.
- Sister PRs in `microsoft-authentication-library-common-for-android`,
`microsoft-authentication-library-for-android`,
`ad-accounts-for-android`, and the `AuthClientAndroidPipelines` 1ES repo
make the same flip.
- ADAL is intentionally excluded (legacy library).
- Authenticator is intentionally excluded.
## Risk
Low — same Azure DevOps organization, same auth, same package
coordinates, same retention. Only the publish-target feed name changes.
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 2596e2d commit a4ad7f0
2 files changed
Lines changed: 2 additions & 1 deletion
- .github/copilot-instructions.md+6-1
- azure-pipelines/pull-request-validation/build-consumers.yml+31
- changelog.txt+14
- common/build.gradle+1-1
- common/src/main/java/com/microsoft/identity/common/internal/apps/AppRegistry.kt+17
- common/src/main/java/com/microsoft/identity/common/internal/broker/BrokerRequest.java+14
- common/src/main/java/com/microsoft/identity/common/internal/broker/BrokerResult.java+40-1
- common/src/main/java/com/microsoft/identity/common/internal/controllers/LocalMSALController.java+28
- common/src/main/java/com/microsoft/identity/common/internal/providers/oauth2/AuthTabStrategyProvider.kt+94
- common/src/main/java/com/microsoft/identity/common/internal/providers/oauth2/BrowserLaunchStrategy.kt+47
- common/src/main/java/com/microsoft/identity/common/internal/providers/oauth2/CustomTabsLaunchStrategy.kt+111
- common/src/main/java/com/microsoft/identity/common/internal/providers/oauth2/SwitchBrowserActivity.kt+175-39
- common/src/main/java/com/microsoft/identity/common/internal/request/MsalBrokerRequestAdapter.java+2-1
- common/src/main/java/com/microsoft/identity/common/internal/result/MsalBrokerResultAdapter.java+153-6
- common/src/main/java/com/microsoft/identity/common/internal/telemetry/OnboardingSessionCorrelationStore.kt+59
- common/src/main/java/com/microsoft/identity/common/internal/telemetry/OnboardingTelemetryRecorder.kt+314
- common/src/main/java/com/microsoft/identity/common/internal/ui/browser/AndroidBrowserSelector.java+7-1
- common/src/main/java/com/microsoft/identity/common/internal/ui/webview/AzureActiveDirectoryWebViewClient.java+92
- common/src/main/java/com/microsoft/identity/common/internal/ui/webview/challengehandlers/SwitchBrowserChallenge.kt+17-9
- common/src/main/java/com/microsoft/identity/common/internal/ui/webview/challengehandlers/SwitchBrowserRequestHandler.kt+21-7
- common/src/main/java/com/microsoft/identity/common/internal/ui/webview/switchbrowser/SwitchBrowserProtocolCoordinator.kt-32
- common/src/main/java/com/microsoft/identity/common/internal/ui/webview/switchbrowser/SwitchBrowserUriHelper.kt+66-2
- common/src/main/java/com/microsoft/identity/deviceregistration/AndroidDeviceRegistrationClientController.java+37-29
- common/src/main/java/com/microsoft/identity/deviceregistration/api/DeviceRegistrationClientApplication.kt+38-2
- common/src/test/java/com/microsoft/identity/common/MicrosoftStsAccountCredentialAdapterTest.java+32
- common/src/test/java/com/microsoft/identity/common/MsalOAuth2TokenCacheTest.java+227
- common/src/test/java/com/microsoft/identity/common/SharedPreferencesAccountCredentialCacheWithMemoryCacheTest.java+121
- common/src/test/java/com/microsoft/identity/common/internal/providers/oauth2/AuthTabStrategyProviderTest.kt+87
- common/src/test/java/com/microsoft/identity/common/internal/providers/oauth2/SwitchBrowserActivityTest.kt+213
- common/src/test/java/com/microsoft/identity/common/internal/request/MsalBrokerRequestAdapterTests.java+69
- common/src/test/java/com/microsoft/identity/common/internal/request/MsalBrokerResultAdapterTests.kt+165
- common/src/test/java/com/microsoft/identity/common/internal/telemetry/OnboardingSessionCorrelationStoreTest.kt+69
- common/src/test/java/com/microsoft/identity/common/internal/telemetry/OnboardingTelemetryRecorderTest.kt+216
- common/src/test/java/com/microsoft/identity/common/internal/ui/browser/AndroidBrowserSelectorTest.java+64
- common/src/test/java/com/microsoft/identity/common/internal/ui/webview/AzureActiveDirectoryWebViewClientTest.java+103
- common/src/test/java/com/microsoft/identity/common/internal/ui/webview/challengehandlers/SwitchBrowserRequestHandlerTest.kt+4
- common/src/test/java/com/microsoft/identity/common/internal/ui/webview/switchbrowser/SwitchBrowserProtocolCoordinatorTest.kt-31
- common/src/test/java/com/microsoft/identity/common/internal/ui/webview/switchbrowser/SwitchBrowserUriHelperTest.kt+132
- common/src/test/java/com/microsoft/identity/deviceregistration/api/DeviceRegistrationClientApplicationTest.kt+50
- common4j/build.gradle+5-2
- common4j/src/main/com/microsoft/identity/common/java/AuthenticationConstants.java+5
- common4j/src/main/com/microsoft/identity/common/java/cache/BrokerOAuth2TokenCache.java-1
- common4j/src/main/com/microsoft/identity/common/java/cache/IAccountCredentialCache.java+32
- common4j/src/main/com/microsoft/identity/common/java/cache/MicrosoftStsAccountCredentialAdapter.java+2-1
- common4j/src/main/com/microsoft/identity/common/java/cache/MsalOAuth2TokenCache.java+246-98
- common4j/src/main/com/microsoft/identity/common/java/cache/SharedPreferencesAccountCredentialCache.java+33
- common4j/src/main/com/microsoft/identity/common/java/cache/SharedPreferencesAccountCredentialCacheWithMemoryCache.java+61
- common4j/src/main/com/microsoft/identity/common/java/commands/parameters/InteractiveTokenCommandParameters.java+9
- common4j/src/main/com/microsoft/identity/common/java/controllers/BaseController.java+12
- common4j/src/main/com/microsoft/identity/common/java/controllers/ExceptionAdapter.java+16-1
- common4j/src/main/com/microsoft/identity/common/java/exception/BaseException.java+44
- common4j/src/main/com/microsoft/identity/common/java/opentelemetry/AttributeName.java+10-5
- common4j/src/main/com/microsoft/identity/common/java/opentelemetry/SpanName.java+5-1
- common4j/src/main/com/microsoft/identity/common/java/providers/BrokerInstallLinkValidator.kt+140
- common4j/src/main/com/microsoft/identity/common/java/providers/RawAuthorizationResult.java+11-1
- common4j/src/main/com/microsoft/identity/common/java/providers/microsoft/microsoftsts/AbstractMicrosoftStsTokenResponseHandler.java+21-4
- common4j/src/main/com/microsoft/identity/common/java/providers/microsoft/microsoftsts/MicrosoftStsAuthorizationResult.java+24
- common4j/src/main/com/microsoft/identity/common/java/providers/microsoft/microsoftsts/MicrosoftStsAuthorizationResultFactory.java+13-1
- common4j/src/main/com/microsoft/identity/common/java/providers/oauth2/TokenResult.java+24
- common4j/src/main/com/microsoft/identity/common/java/result/AcquireTokenResult.java+51
- common4j/src/main/com/microsoft/identity/common/java/result/LocalAuthenticationResult.java+23
- common4j/src/main/com/microsoft/identity/common/java/telemetry/ClientDataInfo.java+12-2
- common4j/src/main/com/microsoft/identity/common/java/telemetry/IOnboardingTelemetryRecorder.java+63
- common4j/src/main/com/microsoft/identity/common/java/telemetry/OnboardingTelemetryConstants.kt+103
- common4j/src/main/com/microsoft/identity/common/java/ui/BrowserDescriptor.java+6
- common4j/src/main/com/microsoft/identity/deviceregistration/java/protocol/DeviceRegistrationProtocolConstants.java+1-1
- common4j/src/main/com/microsoft/identity/deviceregistration/java/protocol/parameters/ProvisionResourceAccountCredentialsV0Parameters.java+31-13
- common4j/src/main/com/microsoft/identity/deviceregistration/java/protocol/response/ProvisionResourceAccountCredentialsV0Response.java+17-14
- common4j/src/test/com/microsoft/identity/common/java/commands/parameters/InteractiveTokenCommandParametersTest.java+57
- common4j/src/test/com/microsoft/identity/common/java/controllers/ExceptionAdapterTests.java+39
- common4j/src/test/com/microsoft/identity/common/java/providers/BrokerInstallLinkValidatorTest.kt+311
- common4j/src/test/com/microsoft/identity/common/java/providers/Constants.java+5
- common4j/src/test/com/microsoft/identity/common/java/providers/RawAuthorizationResultTest.java+51
- common4j/src/test/com/microsoft/identity/common/java/providers/microsoft/microsoftsts/MicrosoftStsAuthorizationResultFactoryTest.java+72
- common4j/src/test/com/microsoft/identity/common/java/providers/microsoft/microsoftsts/MicrosoftStsTokenResponseHandlerTest.java+53
- common4j/src/test/com/microsoft/identity/common/java/result/AcquireTokenResultTest.java+246
- common4j/src/test/com/microsoft/identity/common/java/telemetry/ClientDataInfoTest.java+18-16
- common4j/src/test/com/microsoft/identity/common/java/ui/BrowserDescriptorTest.java+89
- gradle.properties+1
- gradle/versions.gradle+1-1
- testutils/build.gradle+8-1
- uiautomationutilities/build.gradle+8-1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
0 commit comments