Class GeneratorPlugin

java.lang.Object
io.github.suppierk.codegen.GeneratorPlugin
All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>

public class GeneratorPlugin extends Object implements org.gradle.api.Plugin<org.gradle.api.Project>
Registers the Gradle plugin that coordinates Flyway migrations, Testcontainers databases and jOOQ generation.

The plugin wires a custom DSL via GeneratorExtension, validates the declared schemas and jOOQ configurations, and replaces the default JooqGenerate tasks with GeneratorTask / FlywayMigrateTask pairs.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(org.gradle.api.Project currentProject)
    Entry point that applies prerequisite plugins, exposes the jooqCodegen DSL, registers the aggregate tasks and ensures every relevant Java / Kotlin task depends on the generated sources.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GeneratorPlugin

      public GeneratorPlugin()
      Default constructor
  • Method Details

    • apply

      public void apply(@Nonnull org.gradle.api.Project currentProject)
      Entry point that applies prerequisite plugins, exposes the jooqCodegen DSL, registers the aggregate tasks and ensures every relevant Java / Kotlin task depends on the generated sources.
      Specified by:
      apply in interface org.gradle.api.Plugin<org.gradle.api.Project>
      Parameters:
      currentProject - target Gradle project
      See Also: