Class ValidatePlugins

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

    @CacheableTask
    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.
    Since:
    6.0
    • Constructor Detail

      • ValidatePlugins

        public ValidatePlugins()
    • Method Detail

      • validateTaskClasses

        public void validateTaskClasses()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • getIgnoreFailures

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

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

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

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

        @Inject
        protected abstract WorkerExecutor getWorkerExecutor()