OpenRewrite Follow-up Updates for azure-openrewrite #45484
Draft
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.
This PR implements the follow-up updates identified in #44494 for the
azure-openrewrite
module:Changes
1. Removed unused plugins from pom.xml
maven-pmd-plugin
which was only used for reporting metricsrevapi-maven-plugin
which was configured with<skip>true>
spotless-maven-plugin
which was also configured with<skip>true>
2. Addressed clientcore RequestContext feature gap (no setHeader API)
TransformSetHeaderToAddHeaderRecipe
to transform calls fromsetHeader
in azure-core to useaddHeader
withHttpHeaderName.fromString
in clientcorerewrite.yml
3. Updated old disabled tests
HttpLogOptionsTest
tests to reflect current API structure@Disabled
annotations and updated test assertions4. Notes on dependency scopes
These changes make minimal modifications to the
azure-openrewrite
project while maintaining compatibility with the existing codebase and ensuring proper migration support from azure-core to clientcore.Fixes #45483.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.