Gradle jOOQ plugin

jOOQ codegen for Gradle.

License

License

Categories

Categories

Gradle Build Tools jOOQ Data Databases
GroupId

GroupId

com.github.ben-manes
ArtifactId

ArtifactId

gradle-jooq-plugin
Last Version

Last Version

0.6
Release Date

Release Date

Type

Type

jar
Description

Description

Gradle jOOQ plugin
jOOQ codegen for Gradle.
Project URL

Project URL

https://github.com/ben-manes/gradle-jooq-plugin
Source Code Management

Source Code Management

https://github.com/ben-manes/gradle-jooq-plugin

Download gradle-jooq-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.ben-manes/gradle-jooq-plugin/ -->
<dependency>
    <groupId>com.github.ben-manes</groupId>
    <artifactId>gradle-jooq-plugin</artifactId>
    <version>0.6</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.ben-manes/gradle-jooq-plugin/
implementation 'com.github.ben-manes:gradle-jooq-plugin:0.6'
// https://jarcasting.com/artifacts/com.github.ben-manes/gradle-jooq-plugin/
implementation ("com.github.ben-manes:gradle-jooq-plugin:0.6")
'com.github.ben-manes:gradle-jooq-plugin:jar:0.6'
<dependency org="com.github.ben-manes" name="gradle-jooq-plugin" rev="0.6">
  <artifact name="gradle-jooq-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.ben-manes', module='gradle-jooq-plugin', version='0.6')
)
libraryDependencies += "com.github.ben-manes" % "gradle-jooq-plugin" % "0.6"
[com.github.ben-manes/gradle-jooq-plugin "0.6"]

Dependencies

compile (2)

Group / Artifact Type Version
org.jooq : jooq-meta jar 3.1.0
org.jooq : jooq-codegen jar 3.1.0

test (1)

Group / Artifact Type Version
org.spockframework : spock-core jar 0.7-groovy-1.8

Project Modules

There are no modules declared in this project.

Gradle jOOQ Plugin (deprecated)

jOOQ 3.2 includes an official plugin based on this one.

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.

Usage

This plugin is hosted on the Maven Central Repository. All actions are logged at the info level.

The configuration is defined as an XML DSL based on jOOQ's codegen schema. The default target directory is updated to reflect Gradle's build directory (build/generated-sources/jooq).

apply plugin: 'jooq'

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

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 '.*'
    }
  }
}

Tasks

generateJooq

Executes the jOOQ code generator.

Versions

Version
0.6
0.5
0.4
0.3
0.2
0.1