Skip to content

Commit 39cef5e

Browse files
committed
JAVA-2855: Add javax.naming to OSGI imports
The driver took a dependency on javax.naming and javax.naming.directory packages to support mongodb+srv connection strings. These packages have to be added to the OSGI imports for mongodb-driver-core and mongo-java-driver.
1 parent 7f0e2ce commit 39cef5e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

driver-core/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jar {
4747
'javax.crypto.*',
4848
'javax.crypto.spec.*',
4949
'javax.management.*',
50+
'javax.naming.*',
51+
'javax.naming.directory.*',
5052
'javax.net.*',
5153
'javax.net.ssl.*',
5254
'javax.security.sasl.*',

mongo-java-driver/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jar {
4949
'javax.crypto.*',
5050
'javax.crypto.spec.*',
5151
'javax.management.*',
52+
'javax.naming.*',
53+
'javax.naming.directory.*',
5254
'javax.naming.spi.*',
5355
'javax.net.*',
5456
'javax.net.ssl.*',

0 commit comments

Comments
 (0)