DefaultInstantiatorFactoryTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Allow managed factories to be recreatable in worker processes

    • -2
    • +1
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 26 more files in changeset.
Allow managed factories to be recreatable in worker processes

    • -2
    • +1
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 26 more files in changeset.
Allow managed factories to be recreatable in worker processes

    • -2
    • +1
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 26 more files in changeset.
Allow managed factories to be recreatable in worker processes

    • -2
    • +1
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 26 more files in changeset.
Allow managed factories to be recreatable in worker processes

    • -2
    • +1
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 26 more files in changeset.
Allow managed factories to be recreatable in worker processes

    • -2
    • +1
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 26 more files in changeset.
Allow managed factories to be recreatable in worker processes

    • -2
    • +1
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 26 more files in changeset.
WIP

    • -1
    • +2
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 29 more files in changeset.
Move managed factories to a registry

    • -1
    • +2
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 46 more files in changeset.
Move managed factories to a registry

    • -1
    • +2
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 47 more files in changeset.
Move managed factories to a registry

    • -1
    • +2
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 48 more files in changeset.
Move managed factories to a registry

    • -1
    • +2
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 48 more files in changeset.
WIP - more fixes.

    • -1
    • +1
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 13 more files in changeset.
WIP - more fixes.

    • -1
    • +1
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 13 more files in changeset.
WIP - more fixes.

    • -1
    • +1
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 12 more files in changeset.
WIP - more fixes.

    • -1
    • +1
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 12 more files in changeset.
Introduce a service that takes care of inspecting a type for properties, methods and other metadata. This is a step towards using a single mechanism to discover these things efficiently rather than doing so in a bunch of different ways and multiple times.

In this commit, refactor `ClassInspector` into this service and add some in-memory caching. This class was already used for class generation.

Use this service directly in `ConventionAwareHelper` and remove some ad hoc static caching. This avoids inspecting a type that has just been inspected for class generation when an instance is first created.

Also use this service in `OptionsReader`. While this wasn't a performance problem, this change means more consistent behaviour in how annotations are validated and work with Kotlin and Groovy classes (over time).

    • -1
    • +2
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 30 more files in changeset.
Introduce a service that takes care of inspecting a type for properties, methods and other metadata. This is a step towards using a single mechanism to discover these things efficiently rather than doing so in a bunch of different ways and multiple times.

In this commit, refactor `ClassInspector` into this service and add some in-memory caching. This class was already used for class generation.

Use this service directly in `ConventionAwareHelper` and remove some ad hoc static caching. This avoids inspecting a type that has just been inspected for class generation when an instance is first created.

Also use this service in `OptionsReader`. While this wasn't a performance problem, this change means more consistent behaviour in how annotations are validated and work with Kotlin and Groovy classes (over time).

    • -1
    • +2
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 31 more files in changeset.
Introduce a service that takes care of inspecting a type for properties, methods and other metadata. This is a step towards using a single mechanism to discover these things efficiently rather than doing so in a bunch of different ways and multiple times.

In this commit, refactor `ClassInspector` into this service and add some in-memory caching. This class was already used for class generation.

Use this service directly in `ConventionAwareHelper` and remove some ad hoc static caching. This avoids inspecting a type that has just been inspected for class generation when an instance is first created.

Also use this service in `OptionsReader`. While this wasn't a performance problem, this change means more consistent behaviour in how annotations are validated and work with Kotlin and Groovy classes (over time).

    • -1
    • +2
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 31 more files in changeset.
Introduce a service that takes care of inspecting a type for properties, methods and other metadata. This is a step towards using a single mechanism to discover these things efficiently rather than doing so in a bunch of different ways and multiple times.

In this commit, refactor `ClassInspector` into this service and add some in-memory caching. This class was already used for class generation.

Use this service directly in `ConventionAwareHelper` and remove some ad hoc static caching. This avoids inspecting a type that has just been inspected for class generation when an instance is first created.

Also use this service in `OptionsReader`. While this wasn't a performance problem, this change means more consistent behaviour in how annotations are validated and work with Kotlin and Groovy classes (over time).

    • -1
    • +2
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 31 more files in changeset.
Introduce a service that takes care of inspecting a type for properties, methods and other metadata. This is a step towards using a single mechanism to discover these things efficiently rather than doing so in a bunch of different ways and multiple times.

In this commit, refactor `ClassInspector` into this service and add some in-memory caching. This class was already used for class generation.

Use this service directly in `ConventionAwareHelper` and remove some ad hoc static caching. This avoids inspecting a type that has just been inspected for class generation when an instance is first created.

Also use this service in `OptionsReader`. While this wasn't a performance problem, this change means more consistent behaviour in how annotations are validated and work with Kotlin and Groovy classes (over time).

    • -1
    • +2
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 30 more files in changeset.
Introduce a service that takes care of inspecting a type for properties, methods and other metadata. This is a step towards using a single mechanism to discover these things efficiently rather than doing so in a bunch of different ways and multiple times.

In this commit, refactor `ClassInspector` into this service and add some in-memory caching. This class was already used for class generation.

Use this service directly in `ConventionAwareHelper` and remove some ad hoc static caching. This avoids inspecting a type that has just been inspected for class generation when an instance is first created.

Also use this service in `OptionsReader`. While this wasn't a performance problem, this change means more consistent behaviour in how annotations are validated and work with Kotlin and Groovy classes (over time).

    • -1
    • +2
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 30 more files in changeset.
Introduce a service that takes care of inspecting a type for properties, methods and other metadata. This is a step towards using a single mechanism to discover these things efficiently rather than doing so in a bunch of different ways and multiple times.

In this commit, refactor `ClassInspector` into this service and add some in-memory caching. This class was already used for class generation.

Use this service directly in `ConventionAwareHelper` and remove some ad hoc static caching. This avoids inspecting a type that has just been inspected for class generation when an instance is first created.

Also use this service in `OptionsReader`. While this wasn't a performance problem, this change means more consistent behaviour in how annotations are validated and work with Kotlin and Groovy classes (over time).

    • -1
    • +2
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 31 more files in changeset.
Remove some assumptions about which annotations are used for injecting services from the property inspection infrastructure, and instead have an injection scheme describe the annotations it supports to the property inspection scheme.

Also remove some caching from the factories of these schemes, as the schemes are all global services now.

    • -17
    • +9
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 17 more files in changeset.
Remove some assumptions about which annotations are used for injecting services from the property inspection infrastructure, and instead have an injection scheme describe the annotations it supports to the property inspection scheme.

Also remove some caching from the factories of these schemes, as the schemes are all global services now.

    • -17
    • +9
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 17 more files in changeset.
Change wiring of the services that set up the instantiators and property walkers for various types so that this happens consistently and is modelled as a 'scheme' for each type.

Also explicitly declare the ignored annotations for a given scheme and disallow `@Console` and `@Internal` on artifact transform actions (but not parameters).

    • -1
    • +3
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 20 more files in changeset.
Change wiring of the services that set up the instantiators and property walkers for various types so that this happens consistently and is modelled as a 'scheme' for each type.

Also explicitly declare the ignored annotations for a given scheme and disallow `@Console` and `@Internal` on artifact transform actions (but not parameters).

    • -1
    • +3
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 20 more files in changeset.
Rename injectedServicesByAnnotation

to annotationsTriggeringServiceInjection.

    • -4
    • +4
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 7 more files in changeset.
Inject primary input dependencies as Iterable<File>

instead of using the container type `ArtifactTransformDependencies`.

The container type now also has been removed from the public API.

    • -0
    • +34
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 22 more files in changeset.
Add a mechanism to register injection annotations globally and use this to validate that annotations are not attached to types where they are not supported. For example, fail when `@Workspace` is attached to a task property getter.

    • -5
    • +29
    ./DefaultInstantiatorFactoryTest.groovy
  1. … 20 more files in changeset.