Interface EnhancedTask<T extends EnhancedPlugin<? super org.gradle.api.Project>>

Type Parameters:
T - The type of enhanced plugin
All Superinterfaces:
Comparable<org.gradle.api.Task>, org.gradle.api.plugins.ExtensionAware, org.gradle.api.Named, org.gradle.api.Task

public interface EnhancedTask<T extends EnhancedPlugin<? super org.gradle.api.Project>> extends org.gradle.api.Task
The enhanced task contains a handful of helper methods to make working with the enhanced plugin and caches easier.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.gradle.api.Named

    org.gradle.api.Named.Namer
  • Field Summary

    Fields inherited from interface org.gradle.api.Task

    TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
  • Method Summary

    Modifier and Type
    Method
    Description
    default org.gradle.api.provider.Provider<org.gradle.api.file.Directory>
    The default output directory to use for this task if it outputs a directory.
    default org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile>
    The default output file to use for this task if it outputs a file.
    default org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile>
    The default output file to use for this task if it outputs a file.
    default T
    The enhanced plugin associated with this task.
    The enhanced plugin type for this task.

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface org.gradle.api.plugins.ExtensionAware

    getExtensions

    Methods inherited from interface org.gradle.api.Task

    configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
  • Method Details

    • getPluginType

      @Internal Class<T> getPluginType()
      The enhanced plugin type for this task.
      Returns:
      The plugin type
    • getPlugin

      @Internal default T getPlugin()
      The enhanced plugin associated with this task.
      Returns:
      The plugin
    • getDefaultOutputDirectory

      @Internal default org.gradle.api.provider.Provider<org.gradle.api.file.Directory> getDefaultOutputDirectory()
      The default output directory to use for this task if it outputs a directory.
      Returns:
      A provider for the directory
    • getDefaultOutputFile

      @Internal default org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> getDefaultOutputFile()
      The default output file to use for this task if it outputs a file. Uses the .jar extension.
      Returns:
      A provider for the file
    • getDefaultOutputFile

      default org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> getDefaultOutputFile(String ext)
      The default output file to use for this task if it outputs a file.
      Parameters:
      ext - The extension to use for the file
      Returns:
      A provider for the file