Annotation Interface GenerateGradlePlugin
An annotation that triggers the generation of Gradle plugin and other types.
Only single Gradle plugin should be generated. But a plugin may contain
more than one task. Each task will have an corresponding extension method.
- Since:
- 1.0.x
- Author:
- Andriy Dmytruk
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface
A configuration for generating a gradle task as part of the plugin.static enum
Enum defining the types that could be generated. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionConfigure gradle tasks that will be generated. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe coordinate of dependency to add, likeio.micronaut.jsonschema:micronaut-jsonschema-generator
.boolean
The prefix to use for all names.The types of classes to generate.
-
Element Details
-
tasks
Configure gradle tasks that will be generated.- Returns:
- gradle task configurations
-
-
-
namePrefix
String namePrefixThe prefix to use for all names. For example if the prefix isTest
, task will be generated asTestTask
. The default is the annotated class name.- Returns:
- The prefix
- Default:
- ""
-
types
GenerateGradlePlugin.Type[] typesThe types of classes to generate. By default, all are generated.- Returns:
- The plugin types to generate.
- Default:
- {GRADLE_TASK, GRADLE_EXTENSION, GRADLE_SPECIFICATION, GRADLE_PLUGIN}
-
taskGroup
String taskGroup- Returns:
- The gradle task group that will be set for all tasks
- Default:
- ""
-
micronautPlugin
boolean micronautPlugin- Returns:
- Whether to extend the micronaut plugin
- Default:
- true
-
dependency
String dependencyThe coordinate of dependency to add, likeio.micronaut.jsonschema:micronaut-jsonschema-generator
.- Returns:
- The dependency
- Default:
- ""
-