Class GradlePluginBuilder
java.lang.Object
io.micronaut.sourcegen.generator.visitors.gradle.builder.GradlePluginBuilder
- All Implemented Interfaces:
GradleTypeBuilder
A builder for
GenerateGradlePlugin.Type.GRADLE_PLUGIN
.
Creates a plugin that configures an extension and task.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull List<io.micronaut.sourcegen.model.ObjectDef>
build
(GradlePluginUtils.GradlePluginConfig pluginConfig) Generate the gradle type.getType()
Get the gradle type it can generate.
-
Field Details
-
PLUGIN_SUFFIX
The suffix to use for plugin class.- See Also:
-
-
Constructor Details
-
GradlePluginBuilder
public GradlePluginBuilder()
-
-
Method Details
-
getType
Description copied from interface:GradleTypeBuilder
Get the gradle type it can generate.- Specified by:
getType
in interfaceGradleTypeBuilder
- Returns:
- The type
-
build
@NonNull public @NonNull List<io.micronaut.sourcegen.model.ObjectDef> build(GradlePluginUtils.GradlePluginConfig pluginConfig) Description copied from interface:GradleTypeBuilder
Generate the gradle type.- Specified by:
build
in interfaceGradleTypeBuilder
- Parameters:
pluginConfig
- The configuration- Returns:
- The generated objects for the type
-