|
9 | 9 | <relativePath>../pom.xml</relativePath>
|
10 | 10 | </parent>
|
11 | 11 |
|
12 |
| - <groupId>by.andd3dfx</groupId> |
13 | 12 | <artifactId>flyway-db</artifactId>
|
14 | 13 | <packaging>jar</packaging>
|
15 | 14 |
|
16 | 15 | <name>DB versioning : Flyway</name>
|
17 | 16 |
|
| 17 | + <properties> |
| 18 | + <junit.vintage.version>5.10.1</junit.vintage.version> |
| 19 | + <junit.platform.version>1.10.1</junit.platform.version> |
| 20 | + </properties> |
| 21 | + |
| 22 | + <dependencies> |
| 23 | + <dependency> |
| 24 | + <groupId>org.junit.vintage</groupId> |
| 25 | + <artifactId>junit-vintage-engine</artifactId> |
| 26 | + <version>${junit.vintage.version}</version> |
| 27 | + <scope>test</scope> |
| 28 | + </dependency> |
| 29 | + <dependency> |
| 30 | + <groupId>org.junit.platform</groupId> |
| 31 | + <artifactId>junit-platform-runner</artifactId> |
| 32 | + <version>${junit.platform.version}</version> |
| 33 | + <scope>test</scope> |
| 34 | + </dependency> |
| 35 | + <dependency> |
| 36 | + <groupId>org.junit.platform</groupId> |
| 37 | + <artifactId>junit-platform-commons</artifactId> |
| 38 | + <version>${junit.platform.version}</version> |
| 39 | + <scope>test</scope> |
| 40 | + </dependency> |
| 41 | + <dependency> |
| 42 | + <groupId>com.h2database</groupId> |
| 43 | + <artifactId>h2</artifactId> |
| 44 | + <version>${h2.db.version}</version> |
| 45 | + <scope>test</scope> |
| 46 | + </dependency> |
| 47 | + </dependencies> |
| 48 | + |
18 | 49 | <build>
|
19 | 50 | <plugins>
|
20 | 51 | <plugin>
|
21 | 52 | <groupId>org.flywaydb</groupId>
|
22 | 53 | <artifactId>flyway-maven-plugin</artifactId>
|
23 |
| - <version>9.19.4</version> |
| 54 | + <version>${flyway-maven-plugin.version}</version> |
24 | 55 |
|
25 | 56 | <configuration>
|
26 |
| - <url>jdbc:h2:file:${project.build.directory}/flywaydb</url> |
| 57 | + <url>jdbc:h2:mem:flywaydb</url> |
27 | 58 | <user>${jdbc.username}</user>
|
28 | 59 | <password>${jdbc.password}</password>
|
29 | 60 | <locations>
|
|
34 | 65 |
|
35 | 66 | <executions>
|
36 | 67 | <execution>
|
37 |
| - <id>first-execution</id> |
38 |
| - <phase>compile</phase> |
39 |
| - <goals> |
40 |
| - <goal>clean</goal> |
41 |
| - </goals> |
42 |
| - </execution> |
43 |
| - |
44 |
| - <execution> |
45 |
| - <id>second-execution</id> |
46 | 68 | <phase>process-test-resources</phase>
|
47 | 69 | <goals>
|
| 70 | + <goal>clean</goal> |
48 | 71 | <goal>migrate</goal>
|
49 | 72 | </goals>
|
50 | 73 | </execution>
|
|
0 commit comments