Skip to content

Commit

Permalink
Fix service connection support to azure storage instead of group id c…
Browse files Browse the repository at this point in the history
…om.azure.spring
  • Loading branch information
eddumelendez committed Sep 12, 2024
1 parent 5762b63 commit 26dc878
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 154 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
* @author Eddú Meléndez
*/
@ProjectGenerationConfiguration
@ConditionalOnRequestedDependency("docker-compose")
@ConditionalOnRequestedSpringAzureDependency
@ConditionalOnRequestedDependency("azure-storage")
class SpringAzureDockerComposeProjectGenerationConfiguration {

@Bean
@ConditionalOnRequestedDependency("docker-compose")
BuildCustomizer<Build> springAzureDockerComposeBuildCustomizer() {
return (build) -> build.dependencies()
.add("spring-azure-docker-compose",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
* @author Eddú Meléndez
*/
@ProjectGenerationConfiguration
@ConditionalOnRequestedDependency("testcontainers")
@ConditionalOnRequestedSpringAzureDependency
@ConditionalOnRequestedDependency("azure-storage")
class SpringAzureTestcontainersProjectGenerationConfiguration {

@Bean
@ConditionalOnRequestedDependency("testcontainers")
BuildCustomizer<Build> springAzureTestcontainersBuildCustomizer() {
return (build) -> build.dependencies()
.add("spring-azure-testcontainers",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void springAzureTestcontainersDependencyIsAdded() {

@Test
void shouldNotAddSpringAzureTestcontainersDependencyIfNoSpringAzureDependencyIsSelected() {
ProjectRequest projectRequest = createProjectRequest("testcontainers", "web");
ProjectRequest projectRequest = createProjectRequest("testcontainers", "azure-keyvault");
assertThat(mavenPom(projectRequest)).doesNotHaveDependency("com.azure.spring",
"spring-cloud-azure-testcontainers");
}
Expand Down

0 comments on commit 26dc878

Please sign in to comment.