|
24 | 24 |
|
25 | 25 | <eclipselink>2.7.9</eclipselink>
|
26 | 26 | <hibernate>5.5.2.Final</hibernate>
|
| 27 | + <mysql-connector-java>8.0.23</mysql-connector-java> |
| 28 | + <postgresql>42.2.19</postgresql> |
27 | 29 | <vavr>0.10.3</vavr>
|
28 | 30 | <hibernate.groupId>org.hibernate</hibernate.groupId>
|
29 | 31 | <springdata.commons>2.6.0-SNAPSHOT</springdata.commons>
|
|
35 | 37 | </properties>
|
36 | 38 |
|
37 | 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> |
38 | 77 | <profile>
|
39 | 78 | <id>hibernate-next</id>
|
40 | 79 | <properties>
|
|
117 | 156 | </profile>
|
118 | 157 | </profiles>
|
119 | 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 | + |
120 | 171 | <dependencies>
|
121 | 172 |
|
122 | 173 | <dependency>
|
|
188 | 239 | <scope>test</scope>
|
189 | 240 | </dependency>
|
190 | 241 |
|
| 242 | + <dependency> |
| 243 | + <groupId>mysql</groupId> |
| 244 | + <artifactId>mysql-connector-java</artifactId> |
| 245 | + <version>${mysql-connector-java}</version> |
| 246 | + <scope>test</scope> |
| 247 | + </dependency> |
| 248 | + |
| 249 | + <dependency> |
| 250 | + <groupId>org.postgresql</groupId> |
| 251 | + <artifactId>postgresql</artifactId> |
| 252 | + <version>${postgresql}</version> |
| 253 | + <scope>test</scope> |
| 254 | + </dependency> |
| 255 | + |
| 256 | + <dependency> |
| 257 | + <groupId>org.testcontainers</groupId> |
| 258 | + <artifactId>mysql</artifactId> |
| 259 | + <scope>test</scope> |
| 260 | + <exclusions> |
| 261 | + <exclusion> |
| 262 | + <groupId>org.slf4j</groupId> |
| 263 | + <artifactId>jcl-over-slf4j</artifactId> |
| 264 | + </exclusion> |
| 265 | + </exclusions> |
| 266 | + </dependency> |
| 267 | + |
| 268 | + <dependency> |
| 269 | + <groupId>org.testcontainers</groupId> |
| 270 | + <artifactId>postgresql</artifactId> |
| 271 | + <scope>test</scope> |
| 272 | + </dependency> |
| 273 | + |
191 | 274 | <dependency>
|
192 | 275 | <groupId>org.threeten</groupId>
|
193 | 276 | <artifactId>threetenbp</artifactId>
|
|
326 | 409 | </dependencies>
|
327 | 410 | <executions>
|
328 | 411 | <execution>
|
| 412 | + <!-- override the default-test execution and exclude everything --> |
329 | 413 | <id>default-test</id>
|
330 | 414 | <configuration>
|
331 | 415 | <excludes>
|
|
334 | 418 | </configuration>
|
335 | 419 | </execution>
|
336 | 420 | <execution>
|
337 |
| - <id>unit-tests</id> |
| 421 | + <id>unit-test</id> |
338 | 422 | <goals>
|
339 | 423 | <goal>test</goal>
|
340 | 424 | </goals>
|
|
346 | 430 | </configuration>
|
347 | 431 | </execution>
|
348 | 432 | <execution>
|
349 |
| - <id>integration-tests</id> |
| 433 | + <id>integration-test</id> |
350 | 434 | <goals>
|
351 | 435 | <goal>test</goal>
|
352 | 436 | </goals>
|
|
360 | 444 | <exclude>**/*UnitTests.java</exclude>
|
361 | 445 | <exclude>**/OpenJpa*</exclude>
|
362 | 446 | <exclude>**/EclipseLink*</exclude>
|
| 447 | + <exclude>**/MySql*</exclude> |
| 448 | + <exclude>**/Postgres*</exclude> |
363 | 449 | </excludes>
|
364 | 450 | <argLine>
|
365 | 451 | -javaagent:${settings.localRepository}/org/springframework/spring-instrument/${spring}/spring-instrument-${spring}.jar
|
|
368 | 454 | </configuration>
|
369 | 455 | </execution>
|
370 | 456 | <execution>
|
371 |
| - <id>eclipselink-tests</id> |
| 457 | + <id>eclipselink-test</id> |
372 | 458 | <goals>
|
373 | 459 | <goal>test</goal>
|
374 | 460 | </goals>
|
|
0 commit comments