Package io.github.suppierk.codegen
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.gradle.api.Project currentProject) Entry point that applies prerequisite plugins, exposes thejooqCodegenDSL, registers the aggregate tasks and ensures every relevant Java / Kotlin task depends on the generated sources.
-
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 thejooqCodegenDSL, registers the aggregate tasks and ensures every relevant Java / Kotlin task depends on the generated sources.- Specified by:
applyin interfaceorg.gradle.api.Plugin<org.gradle.api.Project>- Parameters:
currentProject- target Gradle project- See Also:
-