-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
33 lines (28 loc) · 750 Bytes
/
build.gradle
File metadata and controls
33 lines (28 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.liquibase:liquibase-core:3.8.9'
classpath "org.liquibase:liquibase-gradle-plugin:1.2.4"
classpath 'mysql:mysql-connector-java:8.0.18'
classpath 'org.yaml:snakeyaml:1.26'
}
configurations {
liquibaseRuntime.extendsFrom runtime
}
}
apply plugin: 'liquibase'
def changeLog = "config/db.changelog-master.yaml"
project.ext.env = project.ext.hasProperty('env') ? project.ext.env : 'dev'
liquibase {
activities {
dev {
changeLogFile changeLog
url 'jdbc:mysql://localhost:3306/foo_test?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8'
username 'root'
password 'root'
}
runList = "$env".isEmpty() ? "dev" : "$env"
}
}