|
15 | 15 | <description>Demo project for Spring Boot</description> |
16 | 16 | <properties> |
17 | 17 | <java.version>17</java.version> |
18 | | - <database.url>jdbc:mysql://localhost:3306/flyway_demo</database.url> |
19 | | - <database.username>YOUR_DB_USER</database.username> |
20 | | - <database.password>YOUR_DB_PASSWORD</database.password> |
| 18 | + <database.username>YOUR_TEST_USERNAME</database.username> |
| 19 | + <database.password>YOUR_TEST_PASSWORD</database.password> |
21 | 20 | </properties> |
22 | 21 | <dependencies> |
23 | 22 | <dependency> |
|
38 | 37 | <artifactId>lombok</artifactId> |
39 | 38 | <optional>true</optional> |
40 | 39 | </dependency> |
41 | | - <dependency> |
42 | | - <groupId>org.springframework.boot</groupId> |
43 | | - <artifactId>spring-boot-starter-test</artifactId> |
44 | | - <scope>test</scope> |
45 | | - </dependency> |
| 40 | + |
46 | 41 | <dependency> |
47 | 42 | <groupId>org.flywaydb</groupId> |
48 | 43 | <artifactId>flyway-core</artifactId> |
49 | | - <version>10.11.0</version> |
| 44 | + <version>10.11.1</version> |
50 | 45 | </dependency> |
51 | 46 | <dependency> |
52 | 47 | <groupId>org.flywaydb</groupId> |
53 | 48 | <artifactId>flyway-mysql</artifactId> |
54 | | - <version>10.11.0</version> |
| 49 | + <version>10.11.1</version> |
| 50 | + </dependency> |
| 51 | + <dependency> |
| 52 | + <groupId>org.springframework.boot</groupId> |
| 53 | + <artifactId>spring-boot-starter-test</artifactId> |
| 54 | + <scope>test</scope> |
55 | 55 | </dependency> |
56 | 56 | </dependencies> |
57 | 57 |
|
|
62 | 62 | <artifactId>flyway-maven-plugin</artifactId> |
63 | 63 | <version>10.10.0</version> |
64 | 64 | <configuration> |
65 | | - <url>${database.url}</url> |
| 65 | + <url>jdbc:mysql://localhost:3306/flyway_demo</url> |
66 | 66 | <user>${database.username}</user> |
67 | 67 | <password>${database.password}</password> |
| 68 | + <locations>classpath:db/migrations</locations> |
68 | 69 | </configuration> |
69 | 70 | </plugin> |
70 | 71 |
|
|
82 | 83 | </plugin> |
83 | 84 | </plugins> |
84 | 85 | </build> |
85 | | - |
86 | 86 | </project> |
0 commit comments