Package ru.yojo.codegen
Class YojoPlugin
java.lang.Object
ru.yojo.codegen.YojoPlugin
- All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>
Gradle plugin that generates Java DTOs from AsyncAPI specifications using Yojo.
Each named configuration registers its own task generateClasses<Name>
(e.g. generateClassesMain, generateClassesEvents).
A lifecycle task generateClasses aggregates all of them, so a single
dependsOn("generateClasses") always works regardless of config count.
Usage:
yojo {
configurations {
create("main") {
specificationProperties {
register("api") { ... }
}
}
}
}
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
YojoPlugin
public YojoPlugin()
-
-
Method Details
-
apply
public void apply(org.gradle.api.Project project) - Specified by:
applyin interfaceorg.gradle.api.Plugin<org.gradle.api.Project>
-