Skip to content

Commit 35bc0f9

Browse files
christophstroblwilkinsona
authored andcommitted
Upgrade to MongoDB 5.0
See gh-39989
1 parent 3699bcf commit 35bc0f9

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoReactiveAutoConfiguration.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,8 @@ public void destroy() {
129129
}
130130
}
131131

132-
@SuppressWarnings("deprecation")
133132
private boolean isCustomTransportConfiguration(MongoClientSettings settings) {
134-
return settings != null
135-
&& (settings.getTransportSettings() != null || settings.getStreamFactoryFactory() != null);
133+
return settings != null && settings.getTransportSettings() != null;
136134
}
137135

138136
}

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mongo/MongoReactiveAutoConfigurationTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ void customizerWithTransportSettingsOverridesAutoConfig() {
230230
assertThat(settings.getApplicationName()).isEqualTo("custom-transport-settings");
231231
assertThat(settings.getTransportSettings())
232232
.isSameAs(SimpleTransportSettingsCustomizerConfig.transportSettings);
233-
assertThat(settings.getStreamFactoryFactory()).isNull();
234233
});
235234
}
236235

spring-boot-project/spring-boot-dependencies/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ bom {
12861286
releaseNotes("https://github.com/mockito/mockito/releases/tag/v{version}")
12871287
}
12881288
}
1289-
library("MongoDB", "4.11.1") {
1289+
library("MongoDB", "5.0.0") {
12901290
group("org.mongodb") {
12911291
modules = [
12921292
"bson",

0 commit comments

Comments
 (0)