Class NoReflectionPlugin
java.lang.Object
io.micronaut.errorprone.noreflection.gradle.NoReflectionPlugin
- All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>
public class NoReflectionPlugin
extends Object
implements org.gradle.api.Plugin<org.gradle.api.Project>
Reports reflection in a project, except where the project allows it.
Applies ErrorProne, adds the NoReflection check of micronaut-errorprone-no-reflection to it, and hands the
check what the project allows and forbids as the flags declared on ReflectionCategory. See
NoReflectionExtension for the configuration.
- Since:
- 1.0.0
- Author:
- Denis Stepanov
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe artifact of the check, in the group and of the version of the plugin. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CHECKS_ARTIFACT
The artifact of the check, in the group and of the version of the plugin.- See Also:
-
-
Constructor Details
-
NoReflectionPlugin
public NoReflectionPlugin()
-
-
Method Details
-
apply
public void apply(org.gradle.api.Project project) - Specified by:
applyin interfaceorg.gradle.api.Plugin<org.gradle.api.Project>
-