Skip to content

Commit 32c9fda

Browse files
Remove java.naming module dependency
1 parent 9ecc170 commit 32c9fda

File tree

2 files changed

+5
-33
lines changed

2 files changed

+5
-33
lines changed

pom.xml

+5-32
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,10 @@
8686
<arg>-Xlint:-options</arg>
8787
<arg>-Xlint:-processing</arg>
8888
<arg>-Xlint:-serial</arg>
89+
<!-- LDAP URL tests require the java.naming module -->
90+
<testCompilerArgument>--add-modules</testCompilerArgument>
91+
<testCompilerArgument>java.naming</testCompilerArgument>
8992
</compilerArgs>
90-
<!-- LDAP URL tests require the java.naming module -->
91-
<!-- Maven seems to ignore the forceJavacCompilerUse.
92-
This results in an error when passing the addModules option to
93-
the javax.tools API. For this reason, Oracle R2DBC's module-info is
94-
declaring a depency on the java.naming module.
95-
TODO: Figure out how to make maven compile tests correctly, and
96-
remove the java.naming depenency from Oracle R2DBC.
97-
<fork>true</fork>
98-
<forceJavacCompilerUse>true</forceJavacCompilerUse>
99-
<testCompilerArgument>- -add-modules java.naming</testCompilerArgument>
100-
-->
10193
<showWarnings>true</showWarnings>
10294
<release>${java.version}</release>
10395
</configuration>
@@ -166,6 +158,8 @@
166158
<include>**/*Test.java</include>
167159
<include>**/*TestKit.java</include>
168160
</includes>
161+
<!-- LDAP URL tests require the java.naming module -->
162+
<argLine>--add-reads com.oracle.database.r2dbc=java.naming</argLine>
169163
</configuration>
170164
</plugin>
171165
<plugin>
@@ -226,20 +220,6 @@
226220
</build>
227221

228222

229-
<!--
230-
<dependencyManagement>
231-
<dependencies>
232-
<dependency>
233-
<groupId>io.projectreactor</groupId>
234-
<artifactId>reactor-bom</artifactId>
235-
<version>${reactor.version}</version>
236-
<type>pom</type>
237-
<scope>import</scope>
238-
</dependency>
239-
</dependencies>
240-
</dependencyManagement>
241-
-->
242-
243223
<dependencies>
244224
<!-- Oracle R2DBC Driver Dependencies -->
245225
<dependency>
@@ -288,13 +268,6 @@
288268
<version>${spring-jdbc.version}</version>
289269
<scope>test</scope>
290270
</dependency>
291-
<!---
292-
<dependency>
293-
<groupId>io.projectreactor</groupId>
294-
<artifactId>reactor-test</artifactId>
295-
<scope>test</scope>
296-
</dependency>
297-
-->
298271
</dependencies>
299272

300273
<profiles>

src/main/java/module-info.java

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
with oracle.r2dbc.impl.OracleConnectionFactoryProviderImpl;
3131

3232
requires java.sql;
33-
requires java.naming;
3433
requires com.oracle.database.jdbc;
3534
requires reactor.core;
3635
requires transitive org.reactivestreams;

0 commit comments

Comments
 (0)