:sourcedir: ../../../../../templates/ = Gradle Database Diff This template generates a diff between the Liquibase schema and the Hibernate model of a database. The resulting xml can be used as a base for schema changes. Please look at the resulting changelog since it can have errors. //#todo add documentation how to run agains real server oder service //#If you wand to run against a real server. //#overrite -Dvariable.liquibase.database.url= in the script section //#add a service with your desired Database container. //#use the alias in the service to define the alias for the database url .Variables |=== |Name |Description | Default Value |GRADLE_CLI_OPTS | Additional options send to gradle | "" | PATH_TO_DIFF | Path to the resulting diff is defined in gradle config, this will also be exposed as the artefact of the Job. | "build/db-diff.xml" |=== .Gradle Liquibase Diff [source,yaml] ---- include::{sourcedir}java/gradle/gradle-database-diff.gitlab-ci.yml[] ----