DependencyResolverIdentifierTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Renamed subprojects/core-impl to subprojects/dependency-management.

    • -63
    • +0
    ./DependencyResolverIdentifierTest.groovy
  1. … 1384 more files in changeset.
Removed a bunch of now unused Ivy adapter classes.

    • -60
    • +0
    ./DependencyResolverIdentifierTest.groovy
  1. … 30 more files in changeset.
REVIEW-2525: Moved calculation of resolver id into ExternalResourceResolver

- Generated id has not changed

    • -11
    • +2
    ./DependencyResolverIdentifierTest.groovy
  1. … 4 more files in changeset.
ExternalResourceResolver no longer implements ivy DependencyResolver - Introduced separate methods to RepositoryArtifactCache to replace the RepositoryCacheManager methods for ExternalResourceResolver - The existing implementations will still be used for native ivy resolvers - Wrap ExternalResourceResolver in a DependencyResolver for use in parsing (until we switch parsing to Gradle APIs) - Removed a lot of cruft from ExternalResourceResolver that is no longer required

    • -0
    • +4
    ./DependencyResolverIdentifierTest.groovy
  1. … 12 more files in changeset.
Wired up dynamic resolve mode and switched on the int tests.

    • -6
    • +5
    ./DependencyResolverIdentifierTest.groovy
  1. … 14 more files in changeset.
Shuffled a bunch of classes around in coreImpl.

    • -1
    • +1
    ./DependencyResolverIdentifierTest.groovy
  1. … 74 more files in changeset.
fixed some flawed (though not failing) spock specs

- moved interactions out of when-blocks (don't belong there)

- moved exception conditions out of expect-blocks (don't belong there)

- groovyfied some code

    • -13
    • +7
    ./DependencyResolverIdentifierTest.groovy
  1. … 8 more files in changeset.
Divorced resources from artifacts and pushed caching/reuse concerns up to the resolver layer instead of the transport layer.

This replaces the ResourceCollection concept with ExternalResourceRepository (which is composed of an accessor, uploader and lister). This means that we can use all of the same transport/caching/reuse logic for raw resources as well as artifacts.

The key abstraction is now ExternalResourceAccessor. It exposes:

ExternalResource getResource(String source, @Nullable LocallyAvailableResourceCandidates localCandidates, @Nullable CachedExternalResource cached) throws IOException;

@Nullable ExternalResourceMetaData getMetaData(String source) throws IOException;

The accessor is responsible for determining whether to use locally available resources or the cached, but is not responsible for finding these things.

This also cleans up some of the awkwardness general logic being trapped inside the http transport.

    • -7
    • +8
    ./DependencyResolverIdentifierTest.groovy
  1. … 39 more files in changeset.
Improve debug logging of dependency resolution

    • -1
    • +10
    ./DependencyResolverIdentifierTest.groovy
  1. … 7 more files in changeset.
Differentiate resolvers based on m2compatible flag

    • -0
    • +33
    ./DependencyResolverIdentifierTest.groovy
  1. … 1 more file in changeset.
Differentiate resolvers based on m2compatible flag

    • -0
    • +33
    ./DependencyResolverIdentifierTest.groovy
  1. … 1 more file in changeset.
Fixed bug in DependencyResolver identifiers, that caused incorrect cache values to be used for ResourceCollectionResolver instances - Replaced WharfResolverMetadata.getId() with DependencyResolverIdentifier - Use only ivypatterns and artifactpatterns + resolver type to generate unique resolver id (where possible) - Continue to use resolver name to generate unique resolver id for unknown resolver types (this is not very good behaviour)

    • -0
    • +92
    ./DependencyResolverIdentifierTest.groovy
  1. … 5 more files in changeset.
Fixed bug in DependencyResolver identifiers, that caused incorrect cache values to be used for ResourceCollectionResolver instances - Replaced WharfResolverMetadata.getId() with DependencyResolverIdentifier - Use only ivypatterns and artifactpatterns + resolver type to generate unique resolver id (where possible) - Continue to use resolver name to generate unique resolver id for unknown resolver types (this is not very good behaviour)

    • -0
    • +92
    ./DependencyResolverIdentifierTest.groovy
  1. … 5 more files in changeset.