ArtifactTransformWithDependenciesIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Do not fail when writing an artifact transform that takes the upstream dependencies of the artifact to the instant execution cache.

In this change, the result will be incorrect because an empty set of dependencies is passed to the transform action when it is loaded from the cache.

    • -4
    • +3
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 9 more files in changeset.
Rename @FailsWithInstantExecution to @ToBeFixedForInstantExecution

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -13
    • +13
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 872 more files in changeset.
Annotate integ tests failing with instant execution in various projects

removing most of @IgnoreWithInstantExecution annotations

after fixing the @FailsWithInstantExecution rule

and more ci feedback

also make @IgnoreWithInstantExecution require a reason from a fixed set

and add it to the remaining ignores

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -2
    • +1
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 126 more files in changeset.
Annotate integ tests failing with instant execution in :dependencyManagement

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -0
    • +14
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 93 more files in changeset.
Treat the artifacts produced for a local file dependency and those produced for other kinds of dependencies more similarly, when visiting the result.

Specifically, merge `ArtifactVisitor.visitFile()` into `ArtifactVisitor.visitArtifact()`, so that now all files/artifacts that participate in the resolution result are represented as a `ResolvableArtifact`.

    • -1
    • +1
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 34 more files in changeset.
Replace 'Matchers' with 'CoreMatchers'

So we do not require 'org.hamcrest:hamcrest-library' as additional

dependency anymore. Which was only available for most of the tests

because it leaked onto the test compile classpath.

    • -4
    • +4
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 162 more files in changeset.
Deprecate using `File` as InputArtifact (#8935)

Only Provider<FileSystemLocation> should be used as input artifact going forward.

    • -4
    • +8
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 12 more files in changeset.
Use inner Parameters class

for transform parameters.

    • -7
    • +6
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 7 more files in changeset.
Use TransformParameters.None for parameterless transforms

    • -3
    • +3
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 11 more files in changeset.
Add TransformAction.getParameters

So the implementors of `TransformAction` don't need to add the method.

    • -3
    • +0
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 10 more files in changeset.
Rename registerTransform{Action -> }

    • -7
    • +7
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 19 more files in changeset.
Use TransformParameters as marker interface

So it is easy to find all the parameter objects for artifact transforms.

    • -12
    • +12
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 16 more files in changeset.
Rename { -> Inject}TransformParameters

    • -1
    • +1
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 11 more files in changeset.
Use a type parameter on the transform action

to determine the type of the transform parameter

    • -9
    • +8
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 15 more files in changeset.
Update test coverage for the use of `@Classpath` and `@CompileClasspath` annotations on artifact transform input properties.

    • -5
    • +13
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 2 more files in changeset.
Add some test coverage to verify that transforms do not run when their various kinds of input files cannot be built.

    • -1
    • +5
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 2 more files in changeset.
Allow classpath on input artifacts

    • -0
    • +100
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 8 more files in changeset.
Allow `@PathSensitive` to be attached to `@InputArtifactDependencies` properties of artifact transform actions.

    • -18
    • +186
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 9 more files in changeset.
Change int test to use `ArtifactTransformTestFixture` to set up the transforms for test.

    • -263
    • +122
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 1 more file in changeset.
Rename {Artifact -> }TransformOutputs

    • -3
    • +3
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 18 more files in changeset.
Rename {Artifact -> }TransformAction

    • -3
    • +3
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 19 more files in changeset.
Rename TransformAction annotation

To `AssociatedTransformAction`

    • -1
    • +1
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 10 more files in changeset.
Rename transform API input types

`PrimaryInput -> InputArtifact`

`PrimaryInputDependencies -> InputArtifactDependencies`

    • -6
    • +6
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 29 more files in changeset.
Merge branch 'master'

    • -7
    • +2
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 7 more files in changeset.
Merge branch 'master'

    • -0
    • +30
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 2 more files in changeset.
Merge branch 'master'

    • -0
    • +30
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 3 more files in changeset.
Short circuit dependencies computation

When looking for non project dependencies, resolving should only proceed

if there is a match between the component identifier and the available

componentResults.

Fixes #8450

    • -0
    • +30
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 1 more file in changeset.
Use methods dir/file to register transform outputs

    • -2
    • +2
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 7 more files in changeset.
Isolate just before runnning the transform

    • -7
    • +2
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 16 more files in changeset.
Register output via relative path

    • -6
    • +4
    ./ArtifactTransformWithDependenciesIntegrationTest.groovy
  1. … 5 more files in changeset.