Class TaskInputsSummary_1_0

  • All Implemented Interfaces:
    com.gradle.scan.eventmodel.EventData

    @GradleVersion(since="4.0")
    @PluginVersion(since="1.8",
                   until="2.0")
    public class TaskInputsSummary_1_0
    extends Object
    implements com.gradle.scan.eventmodel.EventData
    An EventData describing the task inputs participating in incremental build and task output caching.

    An event stream will contain one TaskInputsSummary_1_0 event per task that is:

    • executed
    • not skipped
    • with at least a TaskAction
    and none for other tasks, or when the build cache is not globally enabled.
    See Also:
    incremental build, build cache
    • Field Detail

      • task

        public final long task
        The id of the related task.
      • classLoaderHash

        @Nullable
        public final @Nullable String classLoaderHash
        The hash of the classloader that loaded the task implementation.

        May be null when the classloader was not created by Gradle.

      • actionClassLoaderHashes

        public final List<String> actionClassLoaderHashes
        The hashes of the classloaders that loaded the task's actions.

        The hashes are ordered by sequential order of the task actions.

        May contain null values for classloaders that were not created by Gradle.

      • actionClassNames

        public final List<String> actionClassNames
        The class names of the task's actions.

        The class names are ordered by sequential order of the task actions.

        May contain duplicates.

      • inputHashes

        public final Map<String,​String> inputHashes
        The hashes of the task input properties.

        The keys are the property names, the values are the hash string representation. The hashes are ordered lexicographically, and do not contain null keys or values.

      • outputPropertyNames

        public final List<String> outputPropertyNames
        The names of the task output properties.

        The names are ordered lexicographically, and do not contain duplicate values.

      • buildCacheKey

        @Nullable
        public final @Nullable String buildCacheKey
        The computed build cache key corresponding to all of the task's inputs. Note that a build cache key is computed even if the corresponding task is not cacheable.

        May be null when the computed cache key is invalid (either because classLoaderHash is null or actionClassLoaderHashes contains at least a null element), or when the task had no outputs.

    • Constructor Detail

      • TaskInputsSummary_1_0

        public TaskInputsSummary_1_0​(long task,
                                     @Nullable
                                     @Nullable String classLoaderHash,
                                     List<String> actionClassLoaderHashes,
                                     List<String> actionClassNames,
                                     Map<String,​String> inputHashes,
                                     List<String> outputPropertyNames,
                                     @Nullable
                                     @Nullable String buildCacheKey)