Plugins You can find out about all the publicly available Grails plugins.

Liquibase Migration Runner

  • Tags: /
  • Latest: 1.2
  • Last Updated: 11 August 2010
  • Grails version: 1.3.4 > *
  • Authors: Mike Hugo
0 vote
compile "org.grails.plugins:liquibase-runner:1.2"




Runs liquibase migrations automatically when the server starts. This plugin requires the Liquibase plugin

Install: grails install-plugin liquibase-runner

Define your migrations as you normally would using the Liquibase plugin. To get the liquibase-runner plugin to automatically run those migrations upon application startup, simply define the location of the changelog you would like to run in Config.groovy. You can also specify whether migrations are 'enabled' (i.e. should be run automatically or not). These config settings are environment aware, so you can disable migrations in the test environment, for instance.

migrations.enabled = true
migrations.changelogs = ['migrationschangelog.xml']

// set per-environment serverURL stem for creating absolute links environments { test { migrations.enabled = false } }