Package org.gradle.plugin.devel.plugins
Class JavaGradlePluginPlugin
java.lang.Object
org.gradle.plugin.devel.plugins.JavaGradlePluginPlugin
A plugin for building java gradle plugins. Automatically generates plugin descriptors. Emits warnings for common error conditions.
Provides a direct integration with TestKit by declaring the
gradleTestKit() dependency for the test compile configuration and a dependency on the plugin classpath manifest generation task for the test runtime configuration. Default conventions can
be customized with the help of GradlePluginDevelopmentExtension.
Integrates with the 'maven-publish' and 'ivy-publish' plugins to automatically publish the plugins so they can be resolved using the `pluginRepositories` and `plugins` DSL.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classA file copy action that collects class file paths as they are added to the jar.(package private) static classA file copy action that collects plugin descriptors as they are added to the jar.(package private) static classImplements plugin validation tasks to validate that a proper plugin jar is produced.(package private) static classA state shared by the validation process.(package private) static classAn action that automatically declares the TestKit dependency for the test compile configuration and a dependency on the plugin classpath manifest generation task for the test runtime configuration. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final StringDeprecated.(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final org.gradle.internal.buildoption.InternalFlagSuppress adding theDependencyHandler#gradleApi()dependency.(package private) static final String(package private) static final StringThe description for the task generating plugin descriptors from plugin declarations.(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final StringThe task group used for tasks created by the Java Gradle plugin development plugin.(package private) static final StringThe description for the task generating metadata for plugin functional tests.(package private) static final String(package private) static final String(package private) static final StringThe description for the task validating the plugin.(package private) static final String -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
API_CONFIGURATION
Deprecated.- See Also:
-
JAR_TASK
- See Also:
-
PROCESS_RESOURCES_TASK
- See Also:
-
GRADLE_PLUGINS
- See Also:
-
PLUGIN_DESCRIPTOR_PATTERN
- See Also:
-
CLASSES_PATTERN
- See Also:
-
BAD_IMPL_CLASS_WARNING_MESSAGE
- See Also:
-
INVALID_DESCRIPTOR_WARNING_MESSAGE
- See Also:
-
NO_DESCRIPTOR_WARNING_MESSAGE
- See Also:
-
DECLARED_PLUGIN_MISSING_MESSAGE
- See Also:
-
DECLARATION_MISSING_ID_MESSAGE
- See Also:
-
DECLARATION_MISSING_IMPLEMENTATION_MESSAGE
- See Also:
-
EXTENSION_NAME
- See Also:
-
PLUGIN_UNDER_TEST_METADATA_TASK_NAME
- See Also:
-
GENERATE_PLUGIN_DESCRIPTORS_TASK_NAME
- See Also:
-
VALIDATE_PLUGINS_TASK_NAME
- See Also:
-
EXPERIMENTAL_SUPPRESS_GRADLE_API_PROPERTY
static final org.gradle.internal.buildoption.InternalFlag EXPERIMENTAL_SUPPRESS_GRADLE_API_PROPERTYSuppress adding theDependencyHandler#gradleApi()dependency. Experimental property used to test using an external Gradle API dependency. -
PLUGIN_DEVELOPMENT_GROUP
The task group used for tasks created by the Java Gradle plugin development plugin.- Since:
- 4.0
- See Also:
-
PLUGIN_UNDER_TEST_METADATA_TASK_DESCRIPTION
The description for the task generating metadata for plugin functional tests.- Since:
- 4.0
- See Also:
-
GENERATE_PLUGIN_DESCRIPTORS_TASK_DESCRIPTION
The description for the task generating plugin descriptors from plugin declarations.- Since:
- 4.0
- See Also:
-
VALIDATE_PLUGIN_TASK_DESCRIPTION
The description for the task validating the plugin.- Since:
- 6.0
- See Also:
-
-
Constructor Details
-
JavaGradlePluginPlugin
public JavaGradlePluginPlugin()
-
-
Method Details