Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues in bom and pom files #27850

Merged

Conversation

saragluna
Copy link
Member

@saragluna saragluna commented Mar 24, 2022

This PR will:

  • Replace sdk dependencies in spring-cloud-azure-dependencies with azure-sdk-bom.
  • Remove unnecessary enforcer dependencies
  • Remove unused netty dependencies from jms starter
  • Remove unused mongo from autoconfigure

Copy link

@chenrujun chenrujun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to update the changelog.

Comment on lines -53 to 54
<artifactId>azure-core</artifactId>
<version>1.26.0</version> <!-- {x-version-update;com.azure:azure-core;dependency} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-cosmos</artifactId>
<artifactId>azure-cosmos</artifactId> <!-- Spring Cloud Azure is tested with 4.28.0 -->
<version>4.28.0</version> <!-- {x-version-update;com.azure:azure-cosmos;dependency} -->
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pallavit please take a look at this, cosmos releases two versions this month, CHANGELOG.md#4280-2022-03-18, but the azure-sdk-bom contains the first version, but the version used in our code is 4.28.0. So here instead of using the version from the SDK bom, I chose the 4.28.0 in our bom.

@saragluna
Copy link
Member Author

@jialigit please update the migration guide of the jms starter, to include a section like this https://github.com/microsoft/spring-cloud-azure/blob/4.0.0-beta.4/docs/src/main/asciidoc/_migration-guide-for-4.0.adoc#dependency-changes-2. To give people some hints that we've removed the netty dependencies from the jms starter.

Copy link
Member

@yiliuTo yiliuTo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@backwind1233 backwind1233 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a question about the azure-sdk-bom

@jialigit
Copy link
Contributor

May explain the reason why do these changes , benefits and drawbacks? Maybe we should keep a checklist to check it always as we go.

@saragluna
Copy link
Member Author

May explain the reason why do these changes , benefits and drawbacks? Maybe we should keep a checklist to check it always as we go.

Spring Boot will manage the netty versions, but the qpid version we are using here depends on a older version of netty, if users depend on both jms starter and other sdk starter, the netty version comes with SDK will be omitted for conflicting with netty version comes with qpid.

So here we can't remove the netty from the jms starter, I will rollback the change.

@saragluna saragluna merged commit 081a309 into Azure:feature/azure-spring-cloud-4.0 Mar 24, 2022
@saragluna saragluna deleted the xiada/use-sdk-bom branch April 12, 2022 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure-spring All azure-spring related issues
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants