Decerto Liquibase Maven Plugin

Decerto Maven Utility Plugins

License

License

Categories

Categories

Maven Build Tools Liquibase Data Databases
GroupId

GroupId

pl.decerto
ArtifactId

ArtifactId

decerto-liquibase-maven-plugin
Last Version

Last Version

1.4.6
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Decerto Liquibase Maven Plugin
Decerto Maven Utility Plugins

Download decerto-liquibase-maven-plugin

How to add to project

<plugin>
    <groupId>pl.decerto</groupId>
    <artifactId>decerto-liquibase-maven-plugin</artifactId>
    <version>1.4.6</version>
</plugin>

Dependencies

compile (8)

Group / Artifact Type Version
org.apache.maven : maven-core jar 3.2.2
org.apache.maven : maven-plugin-api jar 2.0
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.2
org.eclipse.jgit : org.eclipse.jgit jar 4.4.1.201607150455-r
org.projectlombok : lombok jar 1.16.10
commons-io : commons-io jar 2.4
org.slf4j : slf4j-simple jar 1.7.21
org.slf4j : slf4j-api jar 1.7.21

test (4)

Group / Artifact Type Version
org.apache.maven : maven-compat jar 3.2.2
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 3.1.0
org.spockframework : spock-core jar 1.0-groovy-2.4
org.codehaus.groovy : groovy-all jar 2.4.0

Project Modules

There are no modules declared in this project.

Decerto Maven Plugin

Build Status Maven Central

This repository contains a set of useful Maven plugins.

  • Decerto Liquibase Maven Plugin - This plugin is made for enhancing Liquibase projects automation

Decerto Liquibase Maven Plugin

This plugin provides following goals:

  • moveSnapshots (phase none) - enables moving temporary changes from (in default) /resources/liquibase/snapshot directory of the project. Useful during releasing a new version - it creates new folder in /resources/liquibase/ with a project's current version name. After succesful file processing, it creates proper git commit, which is provided for releasing automation through CI like Jenkins.

Configuration properties:

  • liquibaseDir (default value -> /src/main/resources/liquibase/)
  • liquibaseSnapshotDir (default value -> /src/main/resources/liquibase/snapshot/)
  • projectVersion (default value -> project version from maven properties)
  • projectBaseDir (default value -> project base dir from maven properties)
  • artifactName (default value -> finalName from maven properties)
  • lineSeparator
  • changelogFiles (list of changelog file names located in /resources/liquibase/ - each files is extented by new snapshots folder inclusion)

Usage:

<plugins>
	<plugin>
		<artifactId>decerto-liquibase-maven-plugin</artifactId>
		<groupId>pl.decerto</groupId>
		<version>1.4.6</version>
		<configuration>
			<changelogFiles>
				<changelogFile>changelog-master.xml</changelogFile>
				<changelogFile>changelog-test.xml</changelogFile>
			</changelogFiles>
		</configuration>
		<executions>
			<execution>
				<goals>
					<goal>moveSnapshots</goal>
				</goals>
			</execution>
		</executions>
	</plugin>
</plugins>

Versions

Version
1.4.6
1.4.3
1.4.2
1.4.1