DefaultPropertyTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Move instantiation of the various Property instances behind a factory interface.

  1. … 18 more files in changeset.
Fixes.

  1. … 10 more files in changeset.
Refactor the property implementations so as to push as much knowlegde of the property lifecycle up to `AbstractProject`.

  1. … 17 more files in changeset.
Refactor the property implementations so as to push as much knowlegde of the property lifecycle up to `AbstractProject`.

  1. … 17 more files in changeset.
Refactor the property implementations so as to push as much knowlegde of the property lifecycle up to `AbstractProject`.

  1. … 17 more files in changeset.
Fixes.

  1. … 5 more files in changeset.
Fixes.

  1. … 5 more files in changeset.
Add `HasConfigurableValue.disallowUnsafeRead()` to allow plugins to switch lazy instances to 'strict' behaviour wrt reads.

In this commit, a strict `Property` disallows reads until the owning project's `afterEvaluate` starts. This is not implemented for `FileCollection` yet.

  1. … 35 more files in changeset.
Add `HasConfigurableValue.disallowUnsafeRead()` to allow plugins to switch lazy instances to 'strict' behaviour wrt reads.

In this commit, a strict `Property` disallows reads until the owning project's `afterEvaluate` starts. This is not implemented for `FileCollection` yet.

  1. … 35 more files in changeset.
Add `HasConfigurableValue.disallowUnsafeRead()` to allow plugins to switch lazy instances to 'strict' behaviour wrt reads.

In this commit, a strict `Property` disallows reads until the owning project's `afterEvaluate` starts. This is not implemented for `FileCollection` yet.

  1. … 35 more files in changeset.
Remove an unnecessary interface.

  1. … 6 more files in changeset.
Remove an unnecessary interface.

  1. … 6 more files in changeset.
Remove an unnecessary interface.

  1. … 6 more files in changeset.
Remove an unnecessary interface.

  1. … 6 more files in changeset.
Change `Provider.map()` and `Provider.flatMap()` to allow `null` to be returned by the mapping function.

  1. … 15 more files in changeset.
Change `Provider.map()` and `Provider.flatMap()` to allow `null` to be returned by the mapping function.

  1. … 16 more files in changeset.
Change `Provider.map()` and `Provider.flatMap()` to allow `null` to be returned by the mapping function.

  1. … 16 more files in changeset.
Change `Provider.map()` and `Provider.flatMap()` to allow `null` to be returned by the mapping function.

  1. … 15 more files in changeset.
Report the chain of properties from which a mapped `Provider` has come from, when the value is missing.

  1. … 23 more files in changeset.
Report the chain of properties from which a mapped `Provider` has come from, when the value is missing.

  1. … 31 more files in changeset.
Report the chain of properties from which a mapped `Provider` has come from, when the value is missing.

  1. … 30 more files in changeset.
Report the chain of properties from which a mapped `Provider` has come from, when the value is missing.

  1. … 31 more files in changeset.
Report the chain of properties from which the value of a `ListProperty`, `SetProperty` and `MapProperty` come from, when the value is missing.

  1. … 21 more files in changeset.
Report the chain of properties from which the value of a `ListProperty`, `SetProperty` and `MapProperty` come from, when the value is missing.

  1. … 21 more files in changeset.
Report the chain of properties from which the value of a `ListProperty`, `SetProperty` and `MapProperty` come from, when the value is missing.

  1. … 18 more files in changeset.
Report the chain of properties from which the value of a `ListProperty`, `SetProperty` and `MapProperty` come from, when the value is missing.

  1. … 21 more files in changeset.
Report the chain of properties from which the value of a `ListProperty`, `SetProperty` and `MapProperty` come from, when the value is missing.

  1. … 21 more files in changeset.
Fixes for previous commit.

  1. … 11 more files in changeset.
Fixes for previous commit.

  1. … 7 more files in changeset.
When a property has no value, include the chain of properties from which the value is derived in the error message.

This is intended to help with diagnostics, as the user can see where the value should have come from. In this change, the diagnostics only works when `Property<T>` instances are connected together directly, stopping at the first `Provider<T>` which is not such a type.

  1. … 35 more files in changeset.