DefaultTaskInputsTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Ignore supported script language base packages for property inspection

We don't want to inspect any of the types from java.*, groovy.* or kotlin.*.

  1. … 8 more files in changeset.
Ignore supported script language base packages for property inspection

We don't want to inspect any of the types from java.*, groovy.* or kotlin.*.

  1. … 8 more files in changeset.
Merge branch 'master'

  1. … 5 more files in changeset.
Remove unnecessary annotations from tests

  1. … 1 more file in changeset.
Ignore methods annotated with ReplacedBy

  1. … 11 more files in changeset.
Add property handlers to unit tests

  1. … 2 more files in changeset.
Use a Supplier instead of a Factory to avoid null check

  1. … 8 more files in changeset.
Use a Supplier instead of a Factory to avoid null check

  1. … 8 more files in changeset.
Do not cache type annotation metadata across builds

We only use it in DefaultTypeMetadataStore that is already cached across builds (and even that might not be worth it).

  1. … 8 more files in changeset.
Add `PropertyValidationAccess#validateMutableNonFinalField` to encourage final fields in tasks

  1. … 8 more files in changeset.
Add `PropertyValidationAccess#validateMutableNonFinalField` to encourage final fields in tasks

  1. … 8 more files in changeset.
Add `PropertyValidationAccess#validateMutableNonFinalField` to encourage final fields in tasks

  1. … 8 more files in changeset.
Add `PropertyValidationAccess#validateMutableNonFinalField` to encourage final fields in tasks

  1. … 8 more files in changeset.
Add `PropertyValidationAccess#validateMutableNonFinalField` to encourage final fields in tasks

  1. … 8 more files in changeset.
Make the detection of Groovy-generated getters generic

We don't want DefaultTypeAnnotationMetadataStore to depend directly on Groovy. Instead, we can inject code that detects Groovy generated 'is'-getters.

  1. … 8 more files in changeset.
Fix tests

Also report type validation problems in a nicer way.

  1. … 3 more files in changeset.
Fix tests

Also report type validation problems in a nicer way.

  1. … 3 more files in changeset.
Fix several tests

  1. … 19 more files in changeset.
Fix several tests

  1. … 19 more files in changeset.
Fix several tests

  1. … 19 more files in changeset.
Fix several tests

  1. … 19 more files in changeset.
Fix several tests

  1. … 19 more files in changeset.
Fix several tests

  1. … 19 more files in changeset.
Require `@Incremental` for incremental inputs

Only properties annotated with `@Incremental` can be queried for

incremental changes. The other properties are considered

non-incremental and changes to those cause the unit of work run

non-incrementally.

  1. … 37 more files in changeset.
Introduce `@IncrementalInput` annotation

Only parameters annotated with `@IncrementalInput` can be queried for

changes. All the other input parameters cause a full rebuild.

  1. … 32 more files in changeset.
Introduce `@IncrementalInput` annotation

Only parameters annotated with `@IncrementalInput` can be queried for

changes. All the other input parameters cause a full rebuild.

  1. … 31 more files in changeset.
Do not allow `@CacheableTask` to be attached to types that are not `Task` subtypes or `@CacheableTransformAction` to be attached to types that are not `TransformAction` subtypes.

The check is performed as part of constructing the `TypeMetadata` for a given type, so is currently only applied for those things that use this. This includes tasks, artifact transform parameters, artifact transform actions, and types that are statically reachable via `@Nested` properties. For tasks, the result of the check is visible as an error (not warning) in the output of `ValidateTaskProperties` for tasks and is also an error at runtime (yes, at runtime). For artifact transforms, the result is visible as an error at runtime. This is intended to be a step towards making the result of all checks visible both at runtime and plugin build time for tasks and all other types.

  1. … 19 more files in changeset.
Do not allow `@CacheableTask` to be attached to types that are not `Task` subtypes or `@CacheableTransformAction` to be attached to types that are not `TransformAction` subtypes.

The check is performed as part of constructing the `TypeMetadata` for a given type, so is currently only applied for those things that use this. This includes tasks, artifact transform parameters, artifact transform actions, and types that are statically reachable via `@Nested` properties. For tasks, the result of the check is visible as an error (not warning) in the output of `ValidateTaskProperties` for tasks and is also an error at runtime (yes, at runtime). For artifact transforms, the result is visible as an error at runtime. This is intended to be a step towards making the result of all checks visible both at runtime and plugin build time for tasks and all other types.

  1. … 19 more files in changeset.
Improve error message for absolute path sensitivity

It is now possible if a file input has actually declared some path

sensitivity or not which can be used to have a better error message

and disable caching for tasks later on.

  1. … 12 more files in changeset.
Use a slightly more informative error message when a known but unsupported annotation is attached to an artifact transform parameters object.

  1. … 10 more files in changeset.