Last active
January 28, 2021 19:04
-
-
Save AlexRogalskiy/91a009e87cbadcc12c4ff4622baa12d6 to your computer and use it in GitHub Desktop.
Maven flyway plugin sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================================================================ | |
<plugin> | |
<groupId>org.flywaydb</groupId> | |
<artifactId>flyway-maven-plugin</artifactId> | |
<configuration> | |
<url>${env.JDBC_DATABASE_URL}</url> | |
</configuration> | |
</plugin> | |
================================================================================ | |
<plugin> | |
<groupId>org.flywaydb</groupId> | |
<artifactId>flyway-maven-plugin</artifactId> | |
<version>6.5.5</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>migrate</goal> | |
</goals> | |
<phase>generate-resources</phase> | |
</execution> | |
</executions> | |
<dependencies> | |
<dependency> | |
<groupId>org.postgresql</groupId> | |
<artifactId>postgresql</artifactId> | |
<version>${postgres.version}</version> | |
</dependency> | |
</dependencies> | |
<configuration> | |
<url>${db.url}</url> | |
<user>${db.user}</user> | |
<password>${db.password}</password> | |
<createSchemas>false</createSchemas> | |
<locations>filesystem:src/main/resources/db/migration</locations> | |
</configuration> | |
</plugin> | |
================================================================================ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment