internal

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Change path sensitivity for Java compile to relative

The Java compiler care only about the name of the java file, not

necessarily about the relative path. It relies on the relative path

to find other classes in the same package.

There is also a problem for our incremental Java compiler, which does

not remove stale files when a file is moved in the hierarchy (#8874)

Therefore, the path sensitivity is changed to RELATIVE to avoid those

problems.

    • -2
    • +2
    ./tasks/SnapshotTaskInputsOperationIntegrationTest.groovy
  1. … 2 more files in changeset.
Fix test on Windows

    • -1
    • +1
    ./tasks/TaskCacheabilityReasonIntegrationTest.groovy
Fix cache disabled reason for tasks with no declared outputs

    • -13
    • +0
    ./tasks/TaskCacheabilityReasonIntegrationTest.groovy
  1. … 3 more files in changeset.
Calculate cache key even if only scans are enabled

Previously we only generated a key when caching was enabled for the work, so at least the build cache had to be enabled.

    • -3
    • +0
    ./tasks/SnapshotTaskInputsOperationIntegrationTest.groovy
  1. … 8 more files in changeset.
Fix tests

    • -1
    • +4
    ./tasks/SnapshotTaskInputsOperationIntegrationTest.groovy
    • -122
    • +128
    ./tasks/TaskCacheabilityReasonIntegrationTest.groovy
  1. … 10 more files in changeset.
Improve incremental input tests

    • -2
    • +2
    ./project/taskfactory/TaskPropertyNamingIntegrationTest.groovy
  1. … 3 more files in changeset.
Require `@Incremental` for incremental inputs

Only properties annotated with `@Incremental` can be queried for

incremental changes. The other properties are considered

non-incremental and changes to those cause the unit of work run

non-incrementally.

    • -2
    • +2
    ./project/taskfactory/TaskPropertyNamingIntegrationTest.groovy
  1. … 37 more files in changeset.
Introduce `@IncrementalInput` annotation

Only parameters annotated with `@IncrementalInput` can be queried for

changes. All the other input parameters cause a full rebuild.

    • -2
    • +2
    ./project/taskfactory/TaskPropertyNamingIntegrationTest.groovy
  1. … 32 more files in changeset.
Remove `CorruptedTaskHistoryIntegrationTest`

The usefulness of this test has become irrelevant. The test is flaky,

and hardly test anything given the task history writing is now atomic.

    • -154
    • +0
    ./changedetection/CorruptedTaskHistoryIntegrationTest.groovy
Make `CorruptedTaskHistoryIntegrationTest` less flaky

    • -15
    • +53
    ./changedetection/CorruptedTaskHistoryIntegrationTest.groovy
Return some incremental execution results in an immutable way

We now use TaskExecuterResult instead of TaskExecutionContext.

    • -1
    • +1
    ./tasks/execution/ExecuteTaskBuildOperationTypeIntegrationTest.groovy
  1. … 16 more files in changeset.
Return some incremental execution results in an immutable way

We now use TaskExecuterResult instead of TaskExecutionContext.

    • -1
    • +1
    ./tasks/execution/ExecuteTaskBuildOperationTypeIntegrationTest.groovy
  1. … 15 more files in changeset.
Return some incremental execution results in an immutable way

We now use TaskExecuterResult instead of TaskExecutionContext.

    • -1
    • +1
    ./tasks/execution/ExecuteTaskBuildOperationTypeIntegrationTest.groovy
  1. … 15 more files in changeset.
Return some incremental execution results in an immutable way

We now use TaskExecuterResult instead of TaskExecutionContext.

    • -1
    • +1
    ./tasks/execution/ExecuteTaskBuildOperationTypeIntegrationTest.groovy
  1. … 15 more files in changeset.
Return some incremental execution results in an immutable way

We now use TaskExecuterResult instead of TaskExecutionContext.

    • -1
    • +1
    ./tasks/execution/ExecuteTaskBuildOperationTypeIntegrationTest.groovy
  1. … 15 more files in changeset.
Return some incremental execution results in an immutable way

We now use TaskExecuterResult instead of TaskExecutionContext.

    • -1
    • +1
    ./tasks/execution/ExecuteTaskBuildOperationTypeIntegrationTest.groovy
  1. … 15 more files in changeset.
More test coverage for extension creation

    • -0
    • +107
    ./model/ObjectFactoryExtensionsIntegrationTest.groovy
    • -0
    • +23
    ./model/ObjectFactoryIntegrationTest.groovy
More test coverage for extension creation

    • -0
    • +107
    ./model/ObjectFactoryExtensionsIntegrationTest.groovy
    • -0
    • +23
    ./model/ObjectFactoryIntegrationTest.groovy
Add support for read-only properties with type `ConfigurableFileCollection` with an abstract getter on types instantiated by Gradle. Gradle will provide an implementation of the property and (lazily) create a file collection instance as required.

Currently works only in those places where project scope services are visible. This does not include the parameters object for an artifact transform. A subsequent commit will allow this feature to be used in more places.

    • -2
    • +54
    ./model/ObjectFactoryIntegrationTest.groovy
  1. … 6 more files in changeset.
Add support for read-only properties with type `ConfigurableFileCollection` with an abstract getter on types instantiated by Gradle. Gradle will provide an implementation of the property and (lazily) create a file collection instance as required.

Currently works only in those places where project scope services are visible. This does not include the parameters object for an artifact transform. A subsequent commit will allow this feature to be used in more places.

    • -2
    • +54
    ./model/ObjectFactoryIntegrationTest.groovy
  1. … 6 more files in changeset.
Rename {Validating -> Property}Value

The value doesn't validate any more.

    • -5
    • +5
    ./project/taskfactory/TaskPropertyNamingIntegrationTest.groovy
  1. … 37 more files in changeset.
Change class generation to accept interface types. The interface may define mutable properties and an implementation is mixed in for each mutable property. The interface may also define `default` methods, `@Inject` properties and may extend `ExtensionAware`. Immutable properties with lazy types (eg `Property`) are not supported yet.

This commit does not include any validation or documentation. These will be added in later commits.

    • -4
    • +35
    ./model/ObjectFactoryIntegrationTest.groovy
  1. … 9 more files in changeset.
Remove PropertySpecFactory

    • -2
    • +2
    ./project/taskfactory/TaskPropertyNamingIntegrationTest.groovy
  1. … 33 more files in changeset.
Adapt visitLocalStateProperty

    • -2
    • +2
    ./project/taskfactory/TaskPropertyNamingIntegrationTest.groovy
  1. … 12 more files in changeset.
Adapt visitDestroyableProperty

    • -2
    • +2
    ./project/taskfactory/TaskPropertyNamingIntegrationTest.groovy
  1. … 8 more files in changeset.
Adapt visitOutputFileProperty

    • -5
    • +5
    ./project/taskfactory/TaskPropertyNamingIntegrationTest.groovy
  1. … 34 more files in changeset.
Adapt visitInputProperty

    • -2
    • +2
    ./project/taskfactory/TaskPropertyNamingIntegrationTest.groovy
  1. … 15 more files in changeset.
The visitor should handle all the creation

Especially the annotation handler should not need the file resolver.

    • -3
    • +3
    ./project/taskfactory/TaskPropertyNamingIntegrationTest.groovy
  1. … 44 more files in changeset.
Don't use propertySpecFactory for input files

    • -7
    • +7
    ./project/taskfactory/TaskPropertyNamingIntegrationTest.groovy
  1. … 51 more files in changeset.
Improve error reporting when attempting to instantiate an interface or a non-static inner class.

    • -0
    • +43
    ./model/ObjectFactoryIntegrationTest.groovy
  1. … 9 more files in changeset.