Merge remote-tracking branch 'khusha/flyway_support'

This commit is contained in:
Keith Woodlock
2013-03-29 17:01:16 +00:00
5 changed files with 1603 additions and 0 deletions
+27
View File
@@ -156,6 +156,7 @@ dependencies {
[group: 'com.lowagie', name: 'itext', version: '2.1.7'],
[group: 'com.lowagie', name: 'itext-rtf', version: '2.1.7'],
[group: 'org.mnode.ical4j', name: 'ical4j', version: '1.0.4'],
[group: 'com.googlecode.flyway', name: 'flyway-maven-plugin', version: '2.1.1']
)
testCompile 'junit:junit:4.10',
@@ -229,6 +230,32 @@ task integrationTest(type:Test){
}
apply plugin: 'flyway'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.github.ben-manes:gradle-flyway-plugin:0.2'
classpath 'mysql:mysql-connector-java:5.1.22'
}
}
flyway {
url = "jdbc:mysql://localhost:3306/mifostenant-default"
user = 'root'
password = 'mysql'
locations = [
'filesystem:../mifosng-db/migrations',
]
//$dbName $dbUser $dbPassword
}
/*
* Support publication of artifacts versioned by topic branch.
* CI builds supply `-P BRANCH_NAME=<TOPIC>` to gradle at build time.