flyway-check-plugin

Verifies that a project does not contain identical versions of Flyway(https://flywaydb.org/) sql and java migrations.

License

License

Categories

Categories

Flyway Data Databases
GroupId

GroupId

com.iwaconsolti
ArtifactId

ArtifactId

flyway-check-plugin
Last Version

Last Version

0.0.3
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

flyway-check-plugin
Verifies that a project does not contain identical versions of Flyway(https://flywaydb.org/) sql and java migrations.
Project URL

Project URL

https://github.com/iWAConsolti-OSS/sloth-trap
Source Code Management

Source Code Management

https://github.com/iWAConsolti-OSS/sloth-trap

Download flyway-check-plugin

How to add to project

<plugin>
    <groupId>com.iwaconsolti</groupId>
    <artifactId>flyway-check-plugin</artifactId>
    <version>0.0.3</version>
</plugin>

Dependencies

compile (1)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.0

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4

Project Modules

There are no modules declared in this project.

Maven plugin

Verifies that a project does not contain identical versions of Flyway(https://flywaydb.org/) sql and java migrations.

Add plugin to existing project

  • In POM file, add the plugin to build plugins section as shown below.
<build>
	<plugins>
		<plugin>
			<groupId>mx.iwa</groupId>
			<artifactId>flyway-maven-plugin</artifactId>
			<version>0.0.2</version>
			<executions>
				<execution>
					<phase>compile</phase>
					<goals>
						<goal>flyway-check</goal>
					</goals>
				</execution>
			</executions>
			<configuration>
				<sql>./src/main/resources/db/migration/</sql>
				<java>./src/main/java/db/migration/</java>
				<prefix>V</prefix>
				<separator>__</separator>
			</configuration>
		</plugin>
	</plugins>
</build>
  • Set plugin properties in configuration section.
    • In plugin configuration section, specify the folders containing sql and java migrations. By default, plugin will look in folders "./src/main/resources/db/migration/" and "./src/main/java/db/migration".
    • If necessary, change the default flyway naming strategy for migrations, prefix and separator properties. Example of default naming: "V1_1__initialization.sql".

Versions

Version
0.0.3
0.0.2
0.0.1