diff --git a/public-api/db-cdr/build.gradle b/public-api/db-cdr/build.gradle index bc04c659b..34529e801 100644 --- a/public-api/db-cdr/build.gradle +++ b/public-api/db-cdr/build.gradle @@ -1,14 +1,11 @@ -buildscript { - repositories { - mavenCentral() - } - dependencies { - classpath 'org.liquibase:liquibase-gradle-plugin:1.2.4' - classpath 'mysql:mysql-connector-java:5.1.37' - } +plugins { + id 'application' + id 'org.liquibase.gradle' version '2.1.1' +} + +repositories { + mavenCentral() } -apply plugin: 'org.liquibase.gradle' -apply plugin: 'application' def db_host = System.getenv("DB_HOST") ?: "db" def db_port = System.getenv("DB_PORT") ?: "3306" @@ -16,6 +13,14 @@ def db_name = System.getenv("CDR_DB_NAME") ?: "cdr" def liquibase_password = System.getenv("LIQUIBASE_DB_PASSWORD") ?: "lb-notasecret" applicationDefaultJvmArgs = ["-Xmx2048m","-Xms2048m"] +dependencies { + liquibaseRuntime 'org.liquibase:liquibase-core:4.16.1' + liquibaseRuntime 'org.liquibase:liquibase-groovy-dsl:3.0.2' + liquibaseRuntime 'info.picocli:picocli:4.6.1' + liquibaseRuntime 'mysql:mysql-connector-java:5.1.37' + liquibaseRuntime group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1' +} + liquibase { activities { schema { diff --git a/public-api/db-cdr/changelog-schema/db.changelog-19.xml b/public-api/db-cdr/changelog-schema/db.changelog-19.xml index e6e0291bf..c0d49638b 100644 --- a/public-api/db-cdr/changelog-schema/db.changelog-19.xml +++ b/public-api/db-cdr/changelog-schema/db.changelog-19.xml @@ -30,7 +30,7 @@ ANY - + diff --git a/public-api/db/build.gradle b/public-api/db/build.gradle index e6cf594a0..3911f28df 100644 --- a/public-api/db/build.gradle +++ b/public-api/db/build.gradle @@ -1,5 +1,6 @@ + plugins { - id 'org.liquibase.gradle' version '2.1.0' + id 'org.liquibase.gradle' version '2.1.1' } repositories { @@ -11,8 +12,8 @@ def db_port = System.getenv("DB_PORT") ?: "3306" def liquibase_password = System.getenv("LIQUIBASE_DB_PASSWORD") ?: "lb-notasecret" dependencies { - liquibaseRuntime 'org.liquibase:liquibase-core:3.10.0' - liquibaseRuntime 'org.liquibase:liquibase-groovy-dsl:3.0.0' + liquibaseRuntime 'org.liquibase:liquibase-core:4.16.1' + liquibaseRuntime 'org.liquibase:liquibase-groovy-dsl:3.0.2' liquibaseRuntime 'info.picocli:picocli:4.6.1' liquibaseRuntime 'mysql:mysql-connector-java:5.1.34' liquibaseRuntime group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'