azure-sdk-for-java: [BUG] Azure Keyvault Starter for Spring Boot no longer works with 2.4
Describe the bug When using Spring Boot 2.4 and Azure Keyvault Starter to grab application properties on launch - it fails to startup and hangs at the point where the keyvault requests start.
Exception or Stack Trace

To Reproduce
- Download a 2.4 Spring Boot app at start.spring.io (I chose Kotlin and Gradle)
- Add necessary dependencies
implementation(platform("com.microsoft.azure:azure-spring-boot-bom:2.3.5"))
implementation(group = "com.microsoft.azure", name = "azure-keyvault-secrets-spring-boot-starter")
- add information to your application-default.properties
azure.keyvault.uri = https://***.vault.azure.net/
azure.keyvault.client-id = ***
azure.keyvault.client-key = ***
azure.keyvault.tenant-id = ***
- (try to) start the application
Expected behavior Application starts up correctly.
Setup (please complete the following information):
- OS: macOS
- IDE : IntelliJ
- Version of the Library used: see above
Additional context This has worked fine with e.g. 2.3.
Following up the discussion in https://github.com/Azure/azure-sdk-for-java/issues/14909#issuecomment-726736141
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 15 (9 by maintainers)
Hi @jonasbark , we are now planning for a release of Azure Spring Boot to be compatable with Spring Boot 2.4.0, but there is a jar conflicting problem between Spring boot 2.4.0 and current Azure sdk libraries and we are discussing with other service team members. So the release timeline is uncertain yet. We will try to solve it as soon as possible.
Hi @jonasbark , thanks for your reporting. I found that this is due to a dependency conflict between keyvault secret starter and spring boot 2.4.0. To quickly fix it, you can add another dependency of com.nimbusds:oauth2-oidc-sdk;7.1.1. We will also fix it in our code, thanks again.