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

Refactor Azure Spring projects structure #23004

Conversation

saragluna
Copy link
Member

This PR is refactoring the Azure Spring project structures.

Remove azure-spring-boot (the autoconfiguration module), move the code to azure-spring-cloud-autoconfigure
Remove azure-spring-boot-core, move the code to azure-spring-cloud-context
Make a separate module azure-spring-cloud-resourcemanager

@check-enforcer

This comment has been minimized.

@saragluna
Copy link
Member Author

/azp run java - spring - tests

@saragluna
Copy link
Member Author

/azp run java - spring - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@saragluna
Copy link
Member Author

/azp run java - spring - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@saragluna
Copy link
Member Author

/azp run java - spring - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@saragluna
Copy link
Member Author

@stliu, @yiliuTo please help review this PR.

@saragluna
Copy link
Member Author

/azp run java - spring - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@saragluna
Copy link
Member Author

/azp run java - spring - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yiliuTo yiliuTo self-assigned this Jul 19, 2021
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

import com.azure.spring.cloud.autoconfigure.context.AzureContextProperties;
import com.azure.spring.cloud.context.core.api.EnvironmentProvider;
import com.azure.spring.cloud.autoconfigure.context.AzureResourceManagerAutoConfiguration;
import com.azure.spring.cloud.context.core.api.AzureResourceMetadata;
import com.azure.spring.cloud.context.core.impl.EventHubNamespaceManager;
import com.azure.spring.cloud.context.core.impl.StorageAccountManager;
import com.azure.spring.cloud.context.core.storage.StorageConnectionStringProvider;
Copy link
Member

Choose a reason for hiding this comment

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

StorageConnectionStringProvider class could be moved to package com.azure.spring.cloud.autoconfigure.storage of lib azure-spring-cloud-autoconfigure as well.

@saragluna
Copy link
Member Author

Will create another PR to address:

  • Whether to move StorageConnectionStringProvider to azure-spring-cloud-context
  • Should add subscriptioId and tenantId to AzureResourceMetadata

@saragluna saragluna merged commit 4a4be12 into Azure:feature/spring-unify-configurations Jul 19, 2021

private String region;
private String resourceGroup;
private boolean autoCreateResources;
Copy link
Member

Choose a reason for hiding this comment

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

The property of tetantId and subscriptionId could be put here as well.

saragluna added a commit to saragluna/azure-sdk-for-java that referenced this pull request Aug 16, 2021
saragluna added a commit that referenced this pull request Aug 17, 2021
…23597)

* Unify spring configurations (#22937)
* Refactor Azure Spring projects structure (#23004)
* Mapping spring legacy props (#23166)
  ** use file for property mapping
  ** add environmentpostprocessor after kv
  ** map multiple key vault use case
* update readme for unified configuration (#23452)

Co-authored-by: Yi Liu <yiliu6@microsoft.com>
@saragluna saragluna deleted the feature/refactor-spring-boot-project-structure branch March 17, 2022 05:29
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
None yet
Development

Successfully merging this pull request may close these issues.

2 participants