Skip to content

Gradle plugin for automated jOOQ setup with PostgreSQL & Liquibase

License

Notifications You must be signed in to change notification settings

tadaskay/gradle-auto-jooq-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ef30879 · Dec 15, 2017

History

18 Commits
Dec 13, 2017
Dec 14, 2017
Dec 11, 2017
Dec 11, 2017
Dec 11, 2017
Dec 14, 2017
Dec 15, 2017
Dec 11, 2017
Dec 11, 2017
Dec 14, 2017

Repository files navigation

gradle-auto-jooq-plugin

jOOQ generates Java code from your database and lets you build type safe SQL queries through its fluent API.

This plugin seamlessly integrates jOOQ into your Gradle-based project.

How it works

  1. Starts a DB container using docker
  2. Runs your DB migrations
  3. Runs jOOQ to generate Java classes from your effective DB schema
  4. Tears down DB container

Supported tools

  • Databases:
    • Postgresql
  • DB migrations:
    • Liquibase

Minimal configuration

plugins {
    id 'java' // or id 'groovy'
    id 'com.tadaskay.auto-jooq' version '1.0.1'
}

jooq {
    main(sourceSets.main) {
        generator {
            target {
                packageName = 'com.my.example.schema'
            }
        }
    }
}

dependencies {
    compile 'org.jooq:jooq:3.10.1'
    jooqRuntime 'org.postgresql:postgresql:42.1.4'
}

For more jOOQ configuration options, refer to gradle-jooq-plugin, to which jOOQ generation task is delegated.

About

Gradle plugin for automated jOOQ setup with PostgreSQL & Liquibase

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages