Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Don't inspect generated types for annotated properties, instead inspect the public type. This avoids some unnecessary work.

Also fix a typo in a couple of validation messages.

  1. … 9 more files in changeset.
Test fixes for changes to artifact transform APIs.

  1. … 2 more files in changeset.
Test fixes for changes to artifact transform APIs.

  1. … 2 more files in changeset.
Merge pull request #8581 from gradle/sg/provider/replacedby

Add ReplacedBy attribute to identify properties that are replaced by …

Remove InjectTransformParameters

The annotation is not required any more.

  1. … 4 more files in changeset.
Add @Incubating to ReplacedBy

  1. … 1 more file in changeset.
Move ReplacedBy to org.gradle.api

Make sure we get an error if you combine two annotations with ReplacedBy

  1. … 9 more files in changeset.
Change `ValidateTaskProperties` task to also validate the properties of artifact transform actions and parameter types.

The task treats all problems with these types as errors, which is the same as the behaviour runtime. This is another step towards reporting on problems with all plugin types consistently at runtime and plugin build time, and later in other places too. There are still some task type checks that are reported only by the validation task and some artifact transform checks that are reported only at runtime. These can be cleaned up later.

  1. … 8 more files in changeset.
Change `ValidateTaskProperties` task to also validate the properties of artifact transform actions and parameter types.

The task treats all problems with these types as errors, which is the same as the behaviour runtime. This is another step towards reporting on problems with all plugin types consistently at runtime and plugin build time, and later in other places too. There are still some task type checks that are reported only by the validation task and some artifact transform checks that are reported only at runtime. These can be cleaned up later.

  1. … 8 more files in changeset.
Rename { -> Inject}TransformParameters

  1. … 11 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.
Rework the validators used by the `ValidateTaskProperties` task so they use the same API to report problems as validators in other places do.

  1. … 9 more files in changeset.
Rework the validators used by the `ValidateTaskProperties` task so they use the same API to report problems as validators in other places do.

  1. … 9 more files in changeset.
Add some more integration tests

Load precompiled scripts from classloader

  1. … 10 more files in changeset.
Rename transform API input types

`PrimaryInput -> InputArtifact`

`PrimaryInputDependencies -> InputArtifactDependencies`

  1. … 29 more files in changeset.
Working pre-compiled scripts

  1. … 11 more files in changeset.
Inspect the properties of an artifact transform action and fail if there are any validation issues. This step also makes the property metadata available for cache key calculation and up-to-date checks, but this isn't used yet. The change also makes the artifact transform specific annotations visible to validation of other types, such as tasks.

  1. … 5 more files in changeset.
Inspect the properties of an artifact transform action and fail if there are any validation issues. This step also makes the property metadata available for cache key calculation and up-to-date checks, but this isn't used yet. The change also makes the artifact transform specific annotations visible to validation of other types, such as tasks.

  1. … 5 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.
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.
Adjust the set of annotations that are allowed to be attached to an artifact transform parameters object. The error reporting isn't great when an unsupported annotation is attached to a parameters object. This will be improved in a later change.

  1. … 5 more files in changeset.
Adjust the set of annotations that are allowed to be attached to an artifact transform parameters object. The error reporting isn't great when an unsupported annotation is attached to a parameters object. This will be improved in a later change.

  1. … 5 more files in changeset.
Change `PropertyValidationAccess` so that it discovers annotation handlers in the same way as the build process, rather than hard-coding a fixed set of handlers.

  1. … 6 more files in changeset.
Change `PropertyValidationAccess` so that it discovers annotation handlers in the same way as the build process, rather than hard-coding a fixed set of handlers.

  1. … 6 more files in changeset.
Limit work in progress labels to 80 characters when the width of the console is not known (e.g. when running under Mintty or from the tooling API), to make wrapping less likely. Wrapping of the labels currently doesn't work particularly well on some consoles.

Also generate less garbage on each 'update now' console event.

  1. … 12 more files in changeset.
Allow enabling stricter task validation (#7408)

So all tasks can be validated as if they were cacheable tasks.

  1. … 9 more files in changeset.
Make AbstractArchiveTask.destinationDir mandatory

Prior to this commit the working directory was used when the

`destinationDir` was not set. Since this behavior does not play nice

with reproducible builds, it will now fail instead. However, it should

rarely happen because the `base` plugin provides a convention.

  1. … 26 more files in changeset.
Make AbstractArchiveTask.destinationDir mandatory

Prior to this commit the working directory was used when the

`destinationDir` was not set. Since this behavior does not play nice

with reproducible builds, it will now fail instead. However, it should

rarely happen because the `base` plugin provides a convention.

  1. … 26 more files in changeset.