DefaultBaseRepositoryFactoryTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Merge branch 'master' into feature/JLL/depricate_http_download_dependencies

* master: (77 commits)

Realized component variants need to provide all attributes

Fix TeamCity Hygiene failures

New performance process (#10361)

Publish 5.6.1-20190825230025+0000

Publish 5.6.1-20190824230038+0000

Update .com userguide links

Update .com footer links

Update .com header links

Publish 5.6.1-20190823234015+0000

Rebase to latest 6.0 nightly

Revert "Recognize contributor"

Remove use of Java 11 API from instant execution

Recognize contributor

enhanced test source folder detection for eclipse task. (#10320)

Publish 5.6.1-20190823130927+0000

Rebase performance tests with 5.7-20190812122716+0000 baseline

Upgrade wrapper to 6.0 nightly

Rebase performance tests with 5.7-20190722220035+0000 baseline

Rebaseline to lock performance improvements

Temporarily use 5.6 as the baseline for Santa Tracker `assembleDebug` case.

...

    • -1
    • +3
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 17 more files in changeset.
Refactor HTTP deprecation logic to use HttpRedirectVerifier

    • -2
    • +6
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 60 more files in changeset.
Replace usages of `FileResolver.resolveFile()` with `FileCollectionFactory.resolving()` or `FileOperations.immutable()`, so that `FileResolver` can be responsible only for converting scalar values to File-ish values.

    • -1
    • +3
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 41 more files in changeset.
Replace usages of `FileResolver.resolveFile()` with `FileCollectionFactory.resolving()` or `FileOperations.immutable()`, so that `FileResolver` can be responsible only for converting scalar values to File-ish values.

    • -1
    • +3
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 41 more files in changeset.
Replace usages of `FileResolver.resolveFile()` with `FileCollectionFactory.resolving()` or `FileOperations.immutable()`, so that `FileResolver` can be responsible only for converting scalar values to File-ish values.

    • -1
    • +3
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 41 more files in changeset.
Replace usages of `FileResolver.resolveFile()` with `FileCollectionFactory.resolving()` or `FileOperations.immutable()`, so that `FileResolver` can be responsible only for converting scalar values to File-ish values.

    • -1
    • +3
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 41 more files in changeset.
Remove special repository default behavior with GRADLE_METADATA flag

The default behavior is now that we look for 'traditional' metadata

first, but find Gradle metadata if a marker is present.

We won't look for anything else if the 'traditional' metadata is not

found. This increases performance for the cases where one repository

is asked for many modules it does not contain.

Users can opt into different behavior using `gradleMetadata()` or

`artifact()` when defining their repositories.

    • -1
    • +1
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 9 more files in changeset.
Remove special repository default behavior with GRADLE_METADATA flag

The default behavior is now that we look for 'traditional' metadata

first, but find Gradle metadata if a marker is present.

We won't look for anything else if the 'traditional' metadata is not

found. This increases performance for the cases where one repository

is asked for many modules it does not contain.

Users can opt into different behavior using `gradleMetadata()` or

`artifact()` when defining their repositories.

    • -1
    • +1
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 10 more files in changeset.
Remove special repository default behavior with GRADLE_METADATA flag

The default behavior is now that we look for 'traditional' metadata

first, but find Gradle metadata if a marker is present.

We won't look for anything else if the 'traditional' metadata is not

found. This increases performance for the cases where one repository

is asked for many modules it does not contain.

Users can opt into different behavior using `gradleMetadata()` or

`artifact()` when defining their repositories.

    • -1
    • +1
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 10 more files in changeset.
Remove special repository default behavior with GRADLE_METADATA flag

The default behavior is now that we look for 'traditional' metadata

first, but find Gradle metadata if a marker is present.

We won't look for anything else if the 'traditional' metadata is not

found. This increases performance for the cases where one repository

is asked for many modules it does not contain.

Users can opt into different behavior using `gradleMetadata()` or

`artifact()` when defining their repositories.

    • -1
    • +1
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 10 more files in changeset.
Remove special repository default behavior with GRADLE_METADATA flag

The default behavior is now that we look for 'traditional' metadata

first, but find Gradle metadata if a marker is present.

We won't look for anything else if the 'traditional' metadata is not

found. This increases performance for the cases where one repository

is asked for many modules it does not contain.

Users can opt into different behavior using `gradleMetadata()` or

`artifact()` when defining their repositories.

    • -1
    • +1
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 9 more files in changeset.
Move validation of secure URLs closer to repository use

    • -1
    • +2
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 22 more files in changeset.
Move validation of secure URLs closer to repository use

    • -1
    • +2
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 19 more files in changeset.
Move validation of secure URLs closer to repository use

    • -1
    • +2
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 19 more files in changeset.
Move validation of secure URLs closer to repository use

    • -1
    • +2
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 19 more files in changeset.
Replace another usage of the `NamedObjectInstantiator` singleton with an injected service.

    • -6
    • +4
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 30 more files in changeset.
Replace another usage of the `NamedObjectInstantiator` singleton with an injected service.

    • -6
    • +4
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 32 more files in changeset.
Replace another usage of the `NamedObjectInstantiator` singleton with an injected service.

    • -6
    • +4
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 32 more files in changeset.
Replace another usage of the `NamedObjectInstantiator` singleton with an injected service.

    • -6
    • +4
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 32 more files in changeset.
Rename writer/parser classes for consistency

    • -2
    • +2
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 21 more files in changeset.
Decorate all domain collection container for emitting build ops (#7876)

* Update all domain object container with decorator for tracing executed callback actions

* Add decorator to a ll required occurances of DefaultDomainObjectSet

* Keep ctor for DefaultPolymorphicDomainObjectContainer as its used in gradle-idea-ext plugin

* Bring back DefaultDomainObjectSet constructor used by the android plugin

* keep backwards compatibility

    • -1
    • +3
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 122 more files in changeset.
Split off value snapshotting and attributes related methods of TestUtil

    • -3
    • +5
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 64 more files in changeset.
POC: Serialization of `Named` attributes in rules

    • -1
    • +1
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 18 more files in changeset.
Support Named attributes in component metadata rule caching

The Named limitation is ok as it was imposed by making

ComponentMetadataRule isolatable already.

This requires the ability to inject the ObjectFactory in rules

    • -3
    • +2
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 22 more files in changeset.
Create and wire in a ComponentMetadataRuleExecutor

This enables ComponentMetadataRule execution to be cached

Update the CrossBuildCachingRuleExecutor to work with a set of rule

instead of a single one. This means we cache or miss on a chain of rules

instead of single rules.

Fixes #5526

    • -1
    • +3
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 32 more files in changeset.
Enforce isolation of ComponentMetadataRule

This means that passed in parameters must be snapshotable as defined by

the ValueSnapshotter

Added support for Attribute to ValueSnapshotter

    • -1
    • +1
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 53 more files in changeset.
Rename 'experimental features' to 'feature previews'

The idea behind this is that we have a set of feature previews rather

than one cryptic experimental flag.

A feature preview collects a set of related functionality (e.g.

everything related to gradle metadata) that changes existing behavior

and thus could potentially break existing builds. The preview options

will be removed with the next major release (currently 5.0) and the new

behaviour will then become the default.

Signed-off-by: Jendrik Johannes <jendrik@gradle.com>

    • -2
    • +2
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 45 more files in changeset.
Adjust tests to use the new experimental feature option

Signed-off-by: Jendrik Johannes <jendrik@gradle.com>

    • -2
    • +1
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 23 more files in changeset.
Provide additional services to constructor calls in tests

Signed-off-by: Jendrik Johannes <jendrik@gradle.com>

    • -1
    • +1
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 14 more files in changeset.
Initial implementation of component metadata rules allowing modification of variant attributes

This commit introduces metadata rules that support modification of variant attributes. Variant attributes

are specific to each variant and can be found in module metadata. Those are NOT component level attributes,

which could be used during dependency resolution. This will be added in a subsequent commit.

    • -2
    • +2
    ./DefaultBaseRepositoryFactoryTest.groovy
  1. … 49 more files in changeset.