|
23 | 23 |
|
24 | 24 | <eclipselink>2.7.9</eclipselink>
|
25 | 25 | <hibernate>5.5.3.Final</hibernate>
|
| 26 | + <mysql-connector-java>8.0.23</mysql-connector-java> |
| 27 | + <postgresql>42.2.19</postgresql> |
| 28 | + <springdata.commons>2.6.0-SNAPSHOT</springdata.commons> |
26 | 29 | <vavr>0.10.3</vavr>
|
| 30 | + |
27 | 31 | <hibernate.groupId>org.hibernate</hibernate.groupId>
|
28 |
| - <springdata.commons>2.6.0-SNAPSHOT</springdata.commons> |
29 | 32 |
|
30 | 33 | <java-module-name>spring.data.jpa</java-module-name>
|
31 | 34 |
|
|
34 | 37 | </properties>
|
35 | 38 |
|
36 | 39 | <profiles>
|
| 40 | + <profile> |
| 41 | + <id>all-dbs</id> |
| 42 | + <build> |
| 43 | + <plugins> |
| 44 | + <plugin> |
| 45 | + <groupId>org.apache.maven.plugins</groupId> |
| 46 | + <artifactId>maven-surefire-plugin</artifactId> |
| 47 | + <executions> |
| 48 | + <execution> |
| 49 | + <id>mysql-test</id> |
| 50 | + <phase>test</phase> |
| 51 | + <goals> |
| 52 | + <goal>test</goal> |
| 53 | + </goals> |
| 54 | + <configuration> |
| 55 | + <includes> |
| 56 | + <include>**/MySql*IntegrationTests.java</include> |
| 57 | + </includes> |
| 58 | + </configuration> |
| 59 | + </execution> |
| 60 | + <execution> |
| 61 | + <id>postgres-test</id> |
| 62 | + <phase>test</phase> |
| 63 | + <goals> |
| 64 | + <goal>test</goal> |
| 65 | + </goals> |
| 66 | + <configuration> |
| 67 | + <includes> |
| 68 | + <include>**/Postgres*IntegrationTests.java</include> |
| 69 | + </includes> |
| 70 | + </configuration> |
| 71 | + </execution> |
| 72 | + </executions> |
| 73 | + </plugin> |
| 74 | + </plugins> |
| 75 | + </build> |
| 76 | + </profile> |
37 | 77 | <profile>
|
38 | 78 | <id>hibernate-next</id>
|
39 | 79 | <properties>
|
|
116 | 156 | </profile>
|
117 | 157 | </profiles>
|
118 | 158 |
|
| 159 | + <dependencyManagement> |
| 160 | + <dependencies> |
| 161 | + <dependency> |
| 162 | + <groupId>org.testcontainers</groupId> |
| 163 | + <artifactId>testcontainers-bom</artifactId> |
| 164 | + <version>${testcontainers}</version> |
| 165 | + <type>pom</type> |
| 166 | + <scope>import</scope> |
| 167 | + </dependency> |
| 168 | + </dependencies> |
| 169 | + </dependencyManagement> |
| 170 | + |
119 | 171 | <dependencies>
|
120 | 172 |
|
121 | 173 | <dependency>
|
|
187 | 239 | <scope>test</scope>
|
188 | 240 | </dependency>
|
189 | 241 |
|
| 242 | + <!-- MySQL testing support --> |
| 243 | + <dependency> |
| 244 | + <groupId>mysql</groupId> |
| 245 | + <artifactId>mysql-connector-java</artifactId> |
| 246 | + <version>${mysql-connector-java}</version> |
| 247 | + <scope>test</scope> |
| 248 | + </dependency> |
| 249 | + |
| 250 | + <dependency> |
| 251 | + <groupId>org.testcontainers</groupId> |
| 252 | + <artifactId>mysql</artifactId> |
| 253 | + <scope>test</scope> |
| 254 | + <exclusions> |
| 255 | + <exclusion> |
| 256 | + <groupId>org.slf4j</groupId> |
| 257 | + <artifactId>jcl-over-slf4j</artifactId> |
| 258 | + </exclusion> |
| 259 | + </exclusions> |
| 260 | + </dependency> |
| 261 | + |
| 262 | + <!-- Postgres testing support --> |
| 263 | + <dependency> |
| 264 | + <groupId>org.postgresql</groupId> |
| 265 | + <artifactId>postgresql</artifactId> |
| 266 | + <version>${postgresql}</version> |
| 267 | + <scope>test</scope> |
| 268 | + </dependency> |
| 269 | + |
| 270 | + <dependency> |
| 271 | + <groupId>org.testcontainers</groupId> |
| 272 | + <artifactId>postgresql</artifactId> |
| 273 | + <scope>test</scope> |
| 274 | + </dependency> |
| 275 | + |
190 | 276 | <dependency>
|
191 | 277 | <groupId>org.threeten</groupId>
|
192 | 278 | <artifactId>threetenbp</artifactId>
|
|
325 | 411 | </dependencies>
|
326 | 412 | <executions>
|
327 | 413 | <execution>
|
| 414 | + <!-- override the default-test execution and exclude everything --> |
328 | 415 | <id>default-test</id>
|
329 | 416 | <configuration>
|
330 | 417 | <excludes>
|
|
333 | 420 | </configuration>
|
334 | 421 | </execution>
|
335 | 422 | <execution>
|
336 |
| - <id>unit-tests</id> |
| 423 | + <id>unit-test</id> |
337 | 424 | <goals>
|
338 | 425 | <goal>test</goal>
|
339 | 426 | </goals>
|
|
345 | 432 | </configuration>
|
346 | 433 | </execution>
|
347 | 434 | <execution>
|
348 |
| - <id>integration-tests</id> |
| 435 | + <id>integration-test</id> |
349 | 436 | <goals>
|
350 | 437 | <goal>test</goal>
|
351 | 438 | </goals>
|
|
359 | 446 | <exclude>**/*UnitTests.java</exclude>
|
360 | 447 | <exclude>**/OpenJpa*</exclude>
|
361 | 448 | <exclude>**/EclipseLink*</exclude>
|
| 449 | + <exclude>**/MySql*</exclude> |
| 450 | + <exclude>**/Postgres*</exclude> |
362 | 451 | </excludes>
|
363 | 452 | <argLine>
|
364 | 453 | -javaagent:${settings.localRepository}/org/springframework/spring-instrument/${spring}/spring-instrument-${spring}.jar
|
|
367 | 456 | </configuration>
|
368 | 457 | </execution>
|
369 | 458 | <execution>
|
370 |
| - <id>eclipselink-tests</id> |
| 459 | + <id>eclipselink-test</id> |
371 | 460 | <goals>
|
372 | 461 | <goal>test</goal>
|
373 | 462 | </goals>
|
|
0 commit comments