File tree 2 files changed +6
-2
lines changed
driver-kotlin-coroutine/src/main/kotlin/com/mongodb/kotlin/client/coroutine
driver-kotlin-sync/src/main/kotlin/com/mongodb/kotlin/client
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,9 @@ public class MongoClient(private val wrapped: JMongoClient) : Closeable {
92
92
val builder =
93
93
if (mongoDriverInformation == null ) MongoDriverInformation .builder()
94
94
else MongoDriverInformation .builder(mongoDriverInformation)
95
- return MongoClient (JMongoClients .create(settings, builder.driverName(" kotlin" ).build()))
95
+ return MongoClient (
96
+ JMongoClients .create(
97
+ settings, builder.driverName(" kotlin" ).driverPlatform(" kotlin/${KotlinVersion .CURRENT } " ).build()))
96
98
}
97
99
}
98
100
Original file line number Diff line number Diff line change @@ -87,7 +87,9 @@ public class MongoClient(private val wrapped: JMongoClient) : Closeable {
87
87
val builder =
88
88
if (mongoDriverInformation == null ) MongoDriverInformation .builder()
89
89
else MongoDriverInformation .builder(mongoDriverInformation)
90
- return MongoClient (JMongoClients .create(settings, builder.driverName(" kotlin" ).build()))
90
+ return MongoClient (
91
+ JMongoClients .create(
92
+ settings, builder.driverName(" kotlin" ).driverPlatform(" kotlin/${KotlinVersion .CURRENT } " ).build()))
91
93
}
92
94
}
93
95
You can’t perform that action at this time.
0 commit comments