Package io.micronaut.gradle
Class AnnotationProcessing
java.lang.Object
io.micronaut.gradle.AnnotationProcessing
- All Implemented Interfaces:
AnnotationProcessingConfigBuilder
Configuration for annotation processing in Micronaut.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionAnnotationProcessing
(org.gradle.api.model.ObjectFactory objectFactory, SourceSetConfigurer sourceSetConfigurer) -
Method Summary
Modifier and TypeMethodDescriptionannotations
(String... annotations) The annotation patterns to include in processing.org.gradle.api.provider.ListProperty<org.gradle.api.tasks.SourceSet>
Deprecated.org.gradle.api.provider.ListProperty<String>
org.gradle.api.provider.Property<String>
getGroup()
org.gradle.api.provider.Property<Boolean>
org.gradle.api.provider.Property<String>
The group name being used.incremental
(boolean incremental) Whether incremental processing is enabled.The module name to use.static void
showAdditionalSourceSetDeprecationWarning
(org.gradle.api.tasks.SourceSet sourceSet) sourceSets
(org.gradle.api.tasks.SourceSet... sourceSets) Additional source sets to apply processing to.
-
Constructor Details
-
AnnotationProcessing
@Inject public AnnotationProcessing(org.gradle.api.model.ObjectFactory objectFactory, SourceSetConfigurer sourceSetConfigurer)
-
-
Method Details
-
showAdditionalSourceSetDeprecationWarning
public static void showAdditionalSourceSetDeprecationWarning(org.gradle.api.tasks.SourceSet sourceSet) -
getGroup
- Returns:
- The Maven group ID
-
getIncremental
- Returns:
- Whether processing is incremental or not
-
getModule
- Returns:
- The Maven artifactId
-
getAnnotations
- Returns:
- Additional annotation patterns to include in processing
-
getAdditionalSourceSets
@Deprecated public org.gradle.api.provider.ListProperty<org.gradle.api.tasks.SourceSet> getAdditionalSourceSets()Deprecated.UsesourceSets(SourceSet...)
instead.- Returns:
- The additional configurations to apply annotation processing to.
-
sourceSets
Description copied from interface:AnnotationProcessingConfigBuilder
Additional source sets to apply processing to.- Specified by:
sourceSets
in interfaceAnnotationProcessingConfigBuilder
- Parameters:
sourceSets
- The source sets- Returns:
- This builder
-
incremental
Description copied from interface:AnnotationProcessingConfigBuilder
Whether incremental processing is enabled.- Specified by:
incremental
in interfaceAnnotationProcessingConfigBuilder
- Parameters:
incremental
- True if incremental processing is enabled- Returns:
- This builder
-
module
Description copied from interface:AnnotationProcessingConfigBuilder
The module name to use. Default to the gradle project name.- Specified by:
module
in interfaceAnnotationProcessingConfigBuilder
- Parameters:
name
- The module name- Returns:
- This builder
-
group
Description copied from interface:AnnotationProcessingConfigBuilder
The group name being used. Defaults to the gradle group name.- Specified by:
group
in interfaceAnnotationProcessingConfigBuilder
- Parameters:
name
- The group name- Returns:
- This builder
-
annotations
Description copied from interface:AnnotationProcessingConfigBuilder
The annotation patterns to include in processing.- Specified by:
annotations
in interfaceAnnotationProcessingConfigBuilder
- Parameters:
annotations
- The annotation patterns- Returns:
- This builder
-
sourceSets(SourceSet...)
instead.