Skip to content

Commit 08fadd0

Browse files
eddumelendezilayaperumalg
authored andcommitted
Make mongodb starter optional for Testcontainers and Docker Compose modules
Currently, `org.springframework.boot:spring-boot-starter-data-mongodb` and `org.springframework.boot:spring-boot-starter-mongodb` are transitive dependencies. This should not be the case for Testcontainers and Docker Compose modules. Auto-cherry-pick to 1.1.x Signed-off-by: Eddú Meléndez <[email protected]>
1 parent ba49f4e commit 08fadd0

File tree

2 files changed

+2
-0
lines changed
  • spring-ai-spring-boot-docker-compose
  • spring-ai-spring-boot-testcontainers

2 files changed

+2
-0
lines changed

spring-ai-spring-boot-docker-compose/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
<dependency>
105105
<groupId>org.springframework.boot</groupId>
106106
<artifactId>spring-boot-starter-mongodb</artifactId>
107+
<optional>true</optional>
107108
</dependency>
108109
<dependency>
109110
<groupId>org.springframework.boot</groupId>

spring-ai-spring-boot-testcontainers/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
<dependency>
125125
<groupId>org.springframework.boot</groupId>
126126
<artifactId>spring-boot-starter-data-mongodb</artifactId>
127+
<optional>true</optional>
127128
</dependency>
128129

129130

0 commit comments

Comments
 (0)