|
86 | 86 | <arg>-Xlint:-options</arg> |
87 | 87 | <arg>-Xlint:-processing</arg> |
88 | 88 | <arg>-Xlint:-serial</arg> |
| 89 | + <!-- LDAP URL tests require the java.naming module --> |
| 90 | + <testCompilerArgument>--add-modules</testCompilerArgument> |
| 91 | + <testCompilerArgument>java.naming</testCompilerArgument> |
89 | 92 | </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 | | - --> |
101 | 93 | <showWarnings>true</showWarnings> |
102 | 94 | <release>${java.version}</release> |
103 | 95 | </configuration> |
|
166 | 158 | <include>**/*Test.java</include> |
167 | 159 | <include>**/*TestKit.java</include> |
168 | 160 | </includes> |
| 161 | + <!-- LDAP URL tests require the java.naming module --> |
| 162 | + <argLine>--add-reads com.oracle.database.r2dbc=java.naming</argLine> |
169 | 163 | </configuration> |
170 | 164 | </plugin> |
171 | 165 | <plugin> |
|
226 | 220 | </build> |
227 | 221 |
|
228 | 222 |
|
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 | | - |
243 | 223 | <dependencies> |
244 | 224 | <!-- Oracle R2DBC Driver Dependencies --> |
245 | 225 | <dependency> |
|
288 | 268 | <version>${spring-jdbc.version}</version> |
289 | 269 | <scope>test</scope> |
290 | 270 | </dependency> |
291 | | - <!--- |
292 | | - <dependency> |
293 | | - <groupId>io.projectreactor</groupId> |
294 | | - <artifactId>reactor-test</artifactId> |
295 | | - <scope>test</scope> |
296 | | - </dependency> |
297 | | - --> |
298 | 271 | </dependencies> |
299 | 272 |
|
300 | 273 | <profiles> |
|
0 commit comments