Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix mapping the contents of a `FileTree` that contains a file (rather than a directory) as a root to an Ant `FileSet`.

This fixes the Checkstyle task when source files are added directly to the task sources.

  1. … 15 more files in changeset.
Serialize more details of the project hierachy to the instant execution cache, so that each project's project directory is correct.

Also correctly recreate the project hierarchy. Previously some projects would not be connected to their parent project.

  1. … 18 more files in changeset.
Ensure that the implementation hash for a task defined in a Groovy DSL build script is the same when the task is deserialized from the instant execution cache as when it was serialized to cache.

Previously, a task defined in a Groovy DSL script was always treated as out-of-date when first deserialized from the instant execution cache.

  1. … 8 more files in changeset.
Support serialization of collection and map properties with an element or value that is calculated from a task output.

Also support serialization of set properties.

  1. … 11 more files in changeset.
Allow replacing task actions

The overload for List.set was missing from our decorating

action list, which makes it harder to replace a specific action.

  1. … 1 more file in changeset.
Use a Supplier instead of a Factory to avoid null check

  1. … 8 more files in changeset.
Add `FileCollection.getElements()`, which returns a view of the collection elements as a `Provider<Set<FileSystemLocation>>`. This can then be used, for example, as an input to a `Property`.

  1. … 7 more files in changeset.
Implicitly finalize the value of task properties with type `ConfigurableFileCollection` when task execution commences, as is done for `Property` types.

  1. … 14 more files in changeset.
Replace 'Matchers' with 'CoreMatchers'

So we do not require 'org.hamcrest:hamcrest-library' as additional

dependency anymore. Which was only available for most of the tests

because it leaked onto the test compile classpath.

  1. … 161 more files in changeset.
Do not run the constructors of tasks that are deserialized from the instant execution cache.

  1. … 22 more files in changeset.
Add missing @Override to all modules

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

  1. … 999 more files in changeset.
Fix task dependency inference when a mapped task output file `Property` is used as input to an `@Input` on another task.

Move some test utility methods out of the artifact transform tests into a more general place, and reuse in some of the task dependency inference tests.

    • -0
    • +152
    ./TasksWithInputsAndOutputs.groovy
  1. … 28 more files in changeset.
Use public services in native plugins to construct `FileCollection` instances, rather than using internal `FileOperations`.

  1. … 32 more files in changeset.
Move some more direct usages of `DefaultConfigurableFileCollection` instances to instead delegate to `FileCollectionFactory`.

  1. … 12 more files in changeset.
Some polishing

  1. … 24 more files in changeset.
Don't use propertySpecFactory for input files

  1. … 51 more files in changeset.
Move some internal types back to their original package.

  1. … 75 more files in changeset.
Moved a bunch of dynamic object related types from core to live in modelCore.

  1. … 104 more files in changeset.
Moved a bunch of dynamic object related types baseServicesGroovy to live in modelCore.

  1. … 65 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. … 126 more files in changeset.
Change convention task to use the correct convention object.

  1. … 1 more file in changeset.
Calculate cache key where we need it

  1. … 8 more files in changeset.
Remove pointless decoration from `TaskFactory` as the instantiation takes care of this.

  1. … 7 more files in changeset.
Make all fields in the AbstractArchiveTask be backed by properties

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@plexxi.com>

    • -1
    • +1
    ./bundling/AbstractArchiveTaskTest.groovy
  1. … 8 more files in changeset.
Update AbstractArchiveTask to expose Provider API

Before this change, there was no easy way to rely upon the output

of the AbstractArchiveTask without using dependsOn.

Related: https://github.com/gradle/gradle-native/issues/893

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@plexxi.com>

    • -7
    • +15
    ./bundling/AbstractArchiveTaskTest.groovy
  1. … 5 more files in changeset.
Make AbstractArchiveTask.destinationDir mandatory

Prior to this commit the working directory was used when the

`destinationDir` was not set. Since this behavior does not play nice

with reproducible builds, it will now fail instead. However, it should

rarely happen because the `base` plugin provides a convention.

    • -0
    • +13
    ./bundling/AbstractArchiveTaskTest.groovy
  1. … 26 more files in changeset.
Make AbstractArchiveTask.destinationDir mandatory

Prior to this commit the working directory was used when the

`destinationDir` was not set. Since this behavior does not play nice

with reproducible builds, it will now fail instead. However, it should

rarely happen because the `base` plugin provides a convention.

    • -0
    • +13
    ./bundling/AbstractArchiveTaskTest.groovy
  1. … 26 more files in changeset.
Change the task class metadata store into a global service backed by the cross-build in-memory cache infrastructure.

Previously this was a build scoped service, meaning that each task class was inspected once per build in a build tree on each Gradle invocation. Now, each task class is inspected once per build process.

  1. … 7 more files in changeset.
Separate `ITaskFactory` from `NamedEntityInstantiator<Task>` so that the instantiator is applied as a decoration over the factory.

  1. … 36 more files in changeset.
Remove Task.dependsOnTaskDidWork()

#6265

  1. … 3 more files in changeset.