ArtifactTransformIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Improve the formatting of user provided values and types in several error messages.

Change some more exceptions to use `TreeFormatter` to take care of the formatting of these things.

    • -65
    • +66
    ./ArtifactTransformIntegrationTest.groovy
  1. … 6 more files in changeset.
Rename @FailsWithInstantExecution to @ToBeFixedForInstantExecution

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

    • -24
    • +24
    ./ArtifactTransformIntegrationTest.groovy
  1. … 872 more files in changeset.
Merge branch 'master' into eskatos/ie/instantIntegTest-enable

    • -1
    • +1
    ./ArtifactTransformIntegrationTest.groovy
  1. … 8 more files in changeset.
Add `BuildServiceParameters.None` marker type that is used to indicate that a build service does not take any parameters, to match the pattern used in other places.

Extract some validation logic from several places so it can be reused in the places where parameterized isolated objects, such as artifact transforms or build services, are registered.

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

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

    • -0
    • +24
    ./ArtifactTransformIntegrationTest.groovy
  1. … 93 more files in changeset.
Remove use of deprecated API

Remove use of deprecated APIs in PluginBuilder

Replace use of archiveName with archiveFileName

Avoid more deprecated APIs

    • -43
    • +43
    ./ArtifactTransformIntegrationTest.groovy
  1. … 64 more files in changeset.
Adjust tests

    • -0
    • +1
    ./ArtifactTransformIntegrationTest.groovy
  1. … 2 more files in changeset.
Decorate artifact transform parameters

    • -1
    • +1
    ./ArtifactTransformIntegrationTest.groovy
  1. … 2 more files in changeset.
Migrate ArtifactTransformIntegrationTest to new API

    • -91
    • +119
    ./ArtifactTransformIntegrationTest.groovy
Align implementations of artifact identifier display names

DefaultModuleComponentArtifactIdentifier now behaves similar as

ComponentFileArtifactIdentifier (showing the full actual file name).

This means that the artifact name used during reporting now

contains the version at the usual position in the file name.

This way it shows the actual file name for artifacts originating

from pom-only maven repositories (except snapshots, which show the

SNAPSHOT placeholder) and ivy repositories with default pattern.

The motivation for this alignment is to get the same representation for

the same file, independent of whether it was sourced from traditional

or Gradle module metadata.

    • -3
    • +3
    ./ArtifactTransformIntegrationTest.groovy
  1. … 32 more files in changeset.
Do not drop variant attributes in results based on maven artifacts

FixedComponentArtifacts dropped the variant attributes (stored in

ConfigurationMetadata) for no clear reason. Because of this, the

attributes in the resolve result differed depending on whether the

variant was constructed from pom or GMM.

This is only affecting the attributes reported in the result. During

matching, which happens earlier, all attributes were already considered.

    • -4
    • +4
    ./ArtifactTransformIntegrationTest.groovy
  1. … 17 more files in changeset.
Apply review comment

    • -24
    • +22
    ./ArtifactTransformIntegrationTest.groovy
  1. … 7 more files in changeset.
Fix related tests

    • -0
    • +2
    ./ArtifactTransformIntegrationTest.groovy
  1. … 4 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`.

    • -9
    • +9
    ./ArtifactTransformIntegrationTest.groovy
  1. … 34 more files in changeset.
Fix tests

    • -2
    • +2
    ./ArtifactTransformIntegrationTest.groovy
  1. … 2 more files in changeset.
Fix integration tests which don't use repo mirrors (#8972)

We observed some flakiness caused by not using repository mirrors: https://github.com/gradle/gradle-private/issues/2049

This PR identifies some integration tests which don't use mirrors and fixes them.

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

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

    • -3
    • +3
    ./ArtifactTransformIntegrationTest.groovy
  1. … 12 more files in changeset.
Transform disambiguation with schema disambiguation

With this change, transform disambiguation now first leverages the

schema disambiguation rule.

Size based disambiguation only happens in a second phase if still

required.

Fixes #8721

    • -0
    • +3
    ./ArtifactTransformIntegrationTest.groovy
  1. … 3 more files in changeset.
Use inner Parameters class

for transform parameters.

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

    • -5
    • +7
    ./ArtifactTransformIntegrationTest.groovy
  1. … 11 more files in changeset.
Add TransformAction.getParameters

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

    • -4
    • +4
    ./ArtifactTransformIntegrationTest.groovy
  1. … 10 more files in changeset.
Rename registerTransform{Action -> }

    • -4
    • +4
    ./ArtifactTransformIntegrationTest.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
    ./ArtifactTransformIntegrationTest.groovy
  1. … 16 more files in changeset.
Enable incremental transform workspaces by default

    • -5
    • +0
    ./ArtifactTransformIntegrationTest.groovy
  1. … 14 more files in changeset.
Use a type parameter on the transform action

to determine the type of the transform parameter

    • -8
    • +7
    ./ArtifactTransformIntegrationTest.groovy
  1. … 15 more files in changeset.
Rename {Artifact -> }TransformOutputs

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

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

To `AssociatedTransformAction`

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

`PrimaryInput -> InputArtifact`

`PrimaryInputDependencies -> InputArtifactDependencies`

    • -2
    • +2
    ./ArtifactTransformIntegrationTest.groovy
  1. … 29 more files in changeset.
Create output directories

As we do for tasks.

    • -1
    • +87
    ./ArtifactTransformIntegrationTest.groovy
  1. … 3 more files in changeset.