Summary
In OSGi environments the org.bson.codecs.kotlin and org.bson.codecs.kotlinx imports causing mongodb-driver-core bundle not to be resolved.
bson-kotlin and bson-kotlinx are optional dependencies therefore their imports should also be optional.
Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).
mongodb-driver-core v4.10.1
How to Reproduce
Install mongodb-driver-core 4.10.1 in any of the OSGi Runtime(e.g. Apache Felix v7.0.5) where optional dependencies bson-kotlin and bson-kotlinx are not already installed.