Gradle Plugins

Maintained by aalmiray

Summary

jOOQ generates a simple Java representation of your database schema. Every table, view, stored procedure, enum, UDT is a class. This plugin performs code generation as part of the Gradle build.

Website https://github.com/ben-manes/gradle-jooq-plugin
Author ben-manes
Version 0.5

Usage

buildscript {
    repositories { jcenter() }
    dependencies {
        classpath 'com.github.ben-manes:gradle-jooq-plugin:0.5'
    }
}

apply plugin: 'jooq'

jooq {
    jdbc {
        url 'jdbc:mysql://localhost:3306'
        driver 'com.mysql.jdbc.Driver'
        user 'root'
    }
    generator {
        database {
            name 'org.jooq.util.mysql.MySQLDatabase'
            inputSchema 'example'
            includes '.*'
        }
    }
}