Skip to content
Automatic changelog generation for Liquibase with Spring Boot & Hibernate
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
autodiff.gradle

README.md

autodiff

This is a utility Gradle script for generating Liquibase changelogs for your Spring Boot / Hibernate JPA projects. It will

  • Spin up a database Docker container
  • Apply your current database schema
  • Generate a diff changelog using your current JPA entity classes
  • Clean up the database container

Currently supported databases:

  • PostgreSQL

Prerequisites

Usage

For latest version see https://github.com/erikhofer/autodiff/releases

build.gradle

apply from: 'https://raw.githubusercontent.com/erikhofer/autodiff/<version>/autodiff.gradle'
project.autodiff.basePackage = 'com.example.entity'

To generate the diff, run

gradle autodiff

Default changelog locations are based on Spring Boot, you may want to set project.autodiff.changeLogMaster and project.autodiff.changeLogDiff.

If something goes wrong, the database container is probably still running. You can clean it up with

gradle autodiffStopDatabase
You can’t perform that action at this time.