Azure / Azure-Spring-Apps

Azure Spring Cloud
MIT License
8 stars 5 forks source link

Consolidated Azure Spring Apps BOM #47

Closed bryandx closed 1 year ago

bryandx commented 1 year ago

We're starting to deploy Spring apps to Azure Spring Apps. We are utilizing Azure Key Vault in our Spring Apps running in Azure Spring Apps. In our Maven pom, we've had to include 2 Azure Spring BOMs. I have some comments of the web sites where I found the BOM's referenced. It would be nice if they were combined into a single BOM. If there is a way to just include a single BOM already, please let me know.

<dependencyManagement>
    <dependencies>
        <!-- Standard Azure Spring Apps BOM.  Came from:
        https://learn.microsoft.com/en-us/azure/spring-apps/how-to-prepare-app-deployment?pivots=programming-language-java&tabs=basic-standard-tier  -->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>2021.0.7</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency> 
        <!-- this one for key vault.  Came from:
        https://spring.io/projects/spring-cloud-azure
        -->     
        <dependency>
            <groupId>com.azure.spring</groupId>
            <artifactId>spring-cloud-azure-dependencies</artifactId>
            <version>4.7.0</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>           
    </dependencies>
</dependencyManagement>

Can we contact you for additional details? Y

allxiao commented 1 year ago

Hi @bryandx ,

The two BOMs include different dependency definitions.

They were not combined together so that the users can choose to include different Spring Boot capabilities on demand, for example, switch to a different vault implementation.