Class ValidatePlugins

  • All Implemented Interfaces:
    java.lang.Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, Named, ExtensionAware, Task, Configurable<Task>

    public abstract class ValidatePlugins
    extends DefaultTask
    Validates plugins by checking property annotations on work items like tasks and artifact transforms. This task should be used in Gradle plugin projects for doing static analysis on the plugin classes. The java-gradle-plugin adds a validatePlugins task, though if you cannot use this plugin then you need to register the task yourself. See the user guide for more information on incremental build and caching task outputs.
    • Constructor Detail

      • ValidatePlugins

        public ValidatePlugins()
    • Method Detail

      • validateTaskClasses

        public void validateTaskClasses()
      • getIgnoreFailures

        public abstract Property<java.lang.Boolean> getIgnoreFailures()
        Specifies whether the build should break when plugin verifications fails.
      • getFailOnWarning

        public abstract Property<java.lang.Boolean> getFailOnWarning()
        Returns whether the build should break when the verifications performed by this task detects a warning.
      • getEnableStricterValidation

        public abstract Property<java.lang.Boolean> getEnableStricterValidation()
        Enable the stricter validation for cacheable tasks for all tasks.
      • getDocumentationRegistry

        protected abstract org.gradle.api.internal.DocumentationRegistry getDocumentationRegistry()
      • getWorkerExecutor

        protected abstract WorkerExecutor getWorkerExecutor()