Add task for authenticating with Gradle repositories #21547
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
Add task for authenticating with gradle repositories. This follows closely the existing
MavenAuthenticatetask. Maven and gradle both use maven repositories for dependencies. Currently gradle projects can use theMavenAuthenticatealong with a gradle plugin for authentication but that approach will not be sustainable in the future.Task Name
GradleAuthenticate
Description
This new task was mostly generated with GitHub CoPilot using the existing MavenAuthenticate task as a base. I have reviewed and tested the code myself but I am not very familiar with typescript. I did consider adding support to MavenAuthenticate for Gradle but still calling it
MavenAuthenticatedidn't seem right and making the decision to abandon it in favor of something likeJvmAuthenticatewas not a decision I was going to makeRisk Assessment (Low / Medium / High)
Low as this is a new task
Change Behind Feature Flag (Yes / No)
No. If we can put it behind a flag I would be happy to.
Tech Design / Approach
Documentation Changes Required (Yes/No)
Indicate whether related documentation needs to be updated.
Unit Tests Added or Updated (Yes / No)
Indicate whether unit tests were added or modified to reflect these changes.
Additional Testing Performed
List all other tests performed (manual or automated, including integration, regression, scenario tests, etc.).
Logging Added/Updated (Yes/No)
Telemetry Added/Updated (Yes/No)
Rollback Scenario and Process (Yes/No)
Dependency Impact Assessed and Regression Tested (Yes/No)
Checklist