Custom

narkisr edited this page Nov 30, 2011 · 1 revision

Liquibase has build in support for custom changes, the liquibase plugin has special support for that that enables the packaging of custom changes/precondition into the standalone version, in order to enable it we need to add a custom dependency:

apply plugin: 'liquibase'

buildscript {
  dependencies {
    classpath 'com.kenshoo.gradle.plugins:gradle-liquibase-plugin:1.1.2'
  }
}

// our custom changes dependency 
project.buildscript.dependencies.add('custom',[group:'com.kenshoo.gradle.plugins',name:'liqui-custom-tasks',version:'0.4', transitive:false])

The plugin will use these classes during the development time and will package them into the standalone jar as well.