FileProvidersIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Handle setting the value of a `Property<String>` using a `GString` from Groovy.

    • -604
    • +0
    ./FileProvidersIntegrationTest.groovy
  1. … 7 more files in changeset.
Remove deprecated `ProperyVar`, `DirectoryVar` and `PropertyState` interfaces and related methods.

    • -18
    • +0
    ./FileProvidersIntegrationTest.groovy
  1. … 18 more files in changeset.
Raise version to 5.0

  1. … 24 more files in changeset.
Show current idea and start fixing tests

Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>

  1. … 3 more files in changeset.
Rename Snapshotter -> Fingerprinter

  1. … 38 more files in changeset.
Expose deprecation warning messages and stacktraces via build operations (#5881)

Expose deprecation warnings as operation progress events

- introduce split of message, warning and advice

- make deprecation progress events immutable

- rework deprecation handling/messages to support more a richer model

- update build operation progress model

- tweak existing deprecation warnings to match new model

- Add performance test + make stacktrace calculation for build ops lazy

- Always include a trace with FeatureUsage now that its always required

  1. … 65 more files in changeset.
Dogfood ImmutableFileCollection on production code (#4988)

This reverts commit 13eaebc2b1244511dcbff4c59cd41253e3b69642.

  1. … 88 more files in changeset.
Revert "Dogfood ImmutableFileCollection on production code (#4988)"

This reverts commit 834632674ca29b6fd190857947338b2b54a9bb62.

The commit caused a bug in incremental compilation, causing changes

to go undetected.

  1. … 88 more files in changeset.
Dogfood ImmutableFileCollection on production code (#4988)

Use ImmutableFileCollection in production code

  1. … 88 more files in changeset.
Properly support Providers for inputs and outputs (#4665)

Now static validation also works for nested Provider types.

Moreover, dependencies on output properties are detected without using `newInputFile()`.

    • -0
    • +90
    ./FileProvidersIntegrationTest.groovy
  1. … 10 more files in changeset.
Add tests for input file in nested bean

Signed-off-by: Stefan Wolf <wolf@gradle.com>

  1. … 1 more file in changeset.
Changed handling of `@Optional` annotation so that it treats a `Provider` with no value the same way as a `null` value.

    • -0
    • +36
    ./FileProvidersIntegrationTest.groovy
  1. … 1 more file in changeset.
Allow Task.dependsOn to accept Provider objects

    • -0
    • +53
    ./FileProvidersIntegrationTest.groovy
  1. … 2 more files in changeset.
Deprecated `DirectoryVar` and `RegularFileVar`, these are replaced by `DirectoryProperty` and `RegularFileProperty`.

Deprecated `ProjectLayout.newDirectoryVar()` and `ProjectLayour.newFileVar()`, these are replaced by `directoryProperty()` and `fileProperty()`.

    • -19
    • +38
    ./FileProvidersIntegrationTest.groovy
  1. … 10 more files in changeset.
Replaced some usages of `PropertyState` with `Property`.

  1. … 6 more files in changeset.
Add test coverage for `newInputDirectory()` and mention in the release note

    • -0
    • +71
    ./FileProvidersIntegrationTest.groovy
  1. … 2 more files in changeset.
Added conveniences to the Groovy DSL for setting a property of type `PropertyState<Directory>` or `PropertyState<RegularFile>` using a `File` instance.

    • -0
    • +62
    ./FileProvidersIntegrationTest.groovy
  1. … 9 more files in changeset.
Added some validation to `PropertyState.set(Provider)` to fail when the given provider produces values that are not assignable to the property type.

    • -0
    • +26
    ./FileProvidersIntegrationTest.groovy
  1. … 12 more files in changeset.
Changed `Directory` and `RegularFile` so that they do not extend `Provider<File>` as these types represent some immutable location, rather than some calculated value.

Also added `FileSystemLocation` as a common supertype for these types to allow a consumer to declare that they accept a directory or a file or any file system element.

    • -10
    • +36
    ./FileProvidersIntegrationTest.groovy
  1. … 14 more files in changeset.
Merged some `PropertyState` implementations and moved some `Provider` implementations into a `Providers` class.

    • -0
    • +58
    ./FileProvidersIntegrationTest.groovy
  1. … 6 more files in changeset.
Added APIs that allow a specific task output directory or output file to be wired in as an input for another task, in a way that allows the task dependencies to be inferred and that deals with later changes to the configured locations of those outputs. This is intended to be a more robust, performant and descriptive alternative to using `File` property types and calls to `Task.dependsOn`

Specifically, added factory methods on `DefaultTask` to allow a task implementation class to create `DirectoryVar` instances that represent an output directory, and `RegularFileVar` instances that represent an output file or directory. When used as an output directory or file property, these instances carry dependency information about the producing task. When used as an input file property, the producing task is tracked as a dependency of the consuming task.

Similar support for input files is done using `ConfigurableFileCollection` and friends, as has been possible for quite a while. There is intentionally no concept of an input directory in these changes. However, it is possible to view a `Directory` or `DirectoryVar` as a `FileTree` which can be wired in as a task input.

    • -0
    • +92
    ./FileProvidersIntegrationTest.groovy
  1. … 14 more files in changeset.
Changed `Directory` so it represents a directory at a fixed location, rather than a directory whose location may or may not be known. Also added `RegularFile` to represent a file at a fixed location, added some `Provider` subtypes that represent some configurable directory or file variable and that provide conveniences for setting their value and deriving other locations relative to their value.

Changed the C++ plugins to use these types.

    • -0
    • +83
    ./FileProvidersIntegrationTest.groovy
  1. … 14 more files in changeset.