SBT Liquibase plugin for sbt 0.13.16 and 1.0.xSBT Liquibase plugin for sbt 0.13.16 and 1.0.x
Code ClimateCode Climate
Instructions for use:Instructions for use:
Step 1: Include the plugin in your buildStep 1: Include the plugin in your build
Add the following to your
project/plugins.sbt:
sbt-(0.13.16 / 1.0.x)sbt-(0.13.16 / 1.0.x)
addSbtPlugin("com.permutive" % "sbt-liquibase" % "1.1.0")
Step 2: Activate sbt-liquibase-plugin in your buildStep 2: Activate sbt-liquibase-plugin in your build
Add the following to your 'build.sbt' ( if you are using build.sbt )
import com.permutive.sbtliquibase.SbtLiquibase enablePlugins(SbtLiquibase) liquibaseUsername := "" liquibasePassword := "" liquibaseDriver := "com.mysql.jdbc.Driver" liquibaseUrl := "jdbc:mysql://localhost:3306/test_db?createDatabaseIfNotExist=true"
SettingsSettings
TasksTasks
NotesNotes
After happily using Liquibase for sometime with Gradle builds I wanted to make use of Liquibase in my SBT projects as well. Doing some searching I found this excelent SBT plugin. Unfortunatly I immediatly ran into several issues around test scoped dependencies which prompted me to refresh this project and also update it to 0.13.7 plugin standards.
The plugin works as is for me but it hasn't been as throughly tested as I would like. To address this I am working on adding scripted tests and CI builds. Additionally I would like to add missing Liquibase tasks such as diff and get this published to Sonatype OSS and eventually Maven Central.
Please file bugs or feature requests and I will do my best to address them.
AcknoledgementsAcknoledgements
Inspiration from previous work done by others on the following projects was an enourmous help.
- sbt-liquibase plugin for sbt 0.11/0.12 (thanks for actually making this plugin in the first place!)
- sbt-web (helped to bring this up to speed with 0.13 plugin standards)
- sbt-assembly (learned a lot about scripted sbt tests)