PublishArtifactNotationParserFactoryTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Revert "Revert "Merge branch 'sg/lazy/publish-register-2' into release""

This reverts commit 0937d57caa43dabc31d331dea6c9c0cf72de8607.

    • -39
    • +45
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 23 more files in changeset.
Allow the services required by a given class to be queried prior to creating any instances of that class. Use this to allow `ArtifactTransformDependencies` to be injected into artifact transforms using any of the service injection patterns (that is, via a constructor or a getter).

    • -1
    • +1
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 127 more files in changeset.
Remove direct usages of `ThreadGlobalInstantiator` from tests, replace with test fixtures.

    • -2
    • +2
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 9 more files in changeset.
Revert "Merge branch 'sg/lazy/publish-register-2' into release"

This reverts commit 975120ec3997139e2e81e9ad4c03df89fa0748e5, reversing

changes made to 2eb24bc6b76a7d76b97036ca2c716730bc156d76.

    • -45
    • +39
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 24 more files in changeset.
Fix remaining unit tests

    • -11
    • +11
    ./PublishArtifactNotationParserFactoryTest.groovy
Almost all tests fixed

    • -19
    • +19
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 3 more files in changeset.
Fix unit tests

    • -11
    • +19
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 3 more files in changeset.
Fix unused import

    • -1
    • +0
    ./PublishArtifactNotationParserFactoryTest.groovy
Replace various ConfigurablePublishArtifact types with a single one backed by Providers

    • -9
    • +8
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 19 more files in changeset.
Rework task dependency inference so that `Provider` implementations use the same `TaskDependencyContainer` interface that most other things use to declare their producer task to the task resolution infrastructure, rather than having special knowledge sprinkled around various places.

Cleaned up a bunch of `Provider` and `Property` implementations so that more logic is reused rather than reimplemented.

    • -2
    • +3
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 30 more files in changeset.
Support propagation of the producer task for provider instances that are created using `Provider.map()`.

Now, when a provider represents a task or task output, whether mapped or not, that task is taken as the producer of the value and the mapping function is not called. Otherwise, the value of the provider is unpacked and resolved, as it previously was.

Rework the protocol by which providers communicate their build dependencies to consumers.

    • -11
    • +7
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 34 more files in changeset.
Make the test look more like the Provider of Directory test

    • -5
    • +5
    ./PublishArtifactNotationParserFactoryTest.groovy
Add ability to use `RegularFile` and `Directory` as publishable artifacts

Allows the use of `Directory` and `RegularFile` artifacts from projects.

`Provider<Directory>` and `Provider<RegularFile>` are already supported, so this make the "non-calculated" case supported as well.

Signed-off-by: Mike Kobit <mkobit@gmail.com>

    • -2
    • +40
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 2 more files in changeset.
Fixed unit test for change to `Directory` and `RegularFile`.

    • -2
    • +2
    ./PublishArtifactNotationParserFactoryTest.groovy
Allow a publish artifact to be declared using a `Provider<File>`.

    • -2
    • +32
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 5 more files in changeset.
Added a tiny bit of validation that the `Provider` used to define a `PublishArtifact` holds a value that can be converted to a `File`, rather than failing with a `ClassCastException`. This should be a lot stronger, but can be improved later.

    • -0
    • +16
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 1 more file in changeset.
Allow a `Provider<RegularFile>` or `Provider<Directory>` to be used to define a publish artifact in the `artifacts { }` DSL block or in the outgoing publications of a `Configuration`.

This changes adds a public API to reliably attach an arbitrary task output as a publication of the project. Previously there was no API to do this in a way that respects changes to build directory and other configuration.

    • -2
    • +68
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 3 more files in changeset.
Support strings as build dependencies on artifacts created using the artifacts DSL

    • -1
    • +3
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 8 more files in changeset.
Fixed unit test on windows.

    • -2
    • +3
    ./PublishArtifactNotationParserFactoryTest.groovy
Allow custom implementations of `PublishArtifact` to be used to declare the artifacts of a configuration, as these are currently used in the Android plugin.

    • -1
    • +19
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 6 more files in changeset.
Changed `ArchivePublishArtifact` to implement `ConfigurablePublishArtifact` so that all `PublishArtifact` instances created by `ArtifactHandler` are `ConfigurablePublishArtifact`.

Changed type signatures on the converter to reflect this.

    • -1
    • +2
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 6 more files in changeset.
Use empty string instead of `null` for `PublishArtifact.extension` when created from a file with no extension, to matches the behaviour described on the public API.

    • -0
    • +129
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 4 more files in changeset.
NotationParser to NotationConverter - Convert various implementations - Remove NotationParserBuilder.parser method - Rename implementations of NotationConverter that had a suffix 'Parser'

    • -122
    • +0
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 69 more files in changeset.
Renamed subprojects/core-impl to subprojects/dependency-management.

    • -0
    • +122
    ./PublishArtifactNotationParserFactoryTest.groovy
  1. … 1384 more files in changeset.