ObjectFactoryIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix scripts under test that were using project.xxx during execution

where .xxx is simply handled by capturing just that.

for example, project.name, project.version or project.objects etc...

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

    • -7
    • +14
    ./ObjectFactoryIntegrationTest.groovy
  1. … 5 more files in changeset.
Add `BuildServiceParameters.None` marker type that is used to indicate that a build service does not take any parameters, to match the pattern used in other places.

Extract some validation logic from several places so it can be reused in the places where parameterized isolated objects, such as artifact transforms or build services, are registered.

  1. … 35 more files in changeset.
Added public factory methods to create `NamedDomainObjectSet` and `NamedDomainObjectList` instances.

    • -1
    • +48
    ./ObjectFactoryIntegrationTest.groovy
  1. … 14 more files in changeset.
Add public factory method to create `ExtensiblePolymorphicDomainObjectContainer` instances.

    • -2
    • +24
    ./ObjectFactoryIntegrationTest.groovy
  1. … 8 more files in changeset.
Fix ObjectFactoryIntegrationTest

Apply DSL decoratation to the elements created by containers created using `ObjectFactory.domainObjectContainer()` and for read-only managed properties.

    • -4
    • +11
    ./ObjectFactoryIntegrationTest.groovy
  1. … 9 more files in changeset.
Include some information about the owning task or extension object in the display name for a managed `Property<T>` instance.

    • -0
    • +18
    ./ObjectFactoryIntegrationTest.groovy
  1. … 8 more files in changeset.
Rename `ObjectFactory#container` to `domainObjectContainer`

  1. … 4 more files in changeset.
Add factory methods to create NamedDomainObjectContainer and DomainObjectSet on ObjectFactory

    • -0
    • +57
    ./ObjectFactoryIntegrationTest.groovy
  1. … 12 more files in changeset.
More test coverage for extension creation

    • -0
    • +23
    ./ObjectFactoryIntegrationTest.groovy
  1. … 1 more file 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
    ./ObjectFactoryIntegrationTest.groovy
  1. … 6 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
    ./ObjectFactoryIntegrationTest.groovy
  1. … 9 more files in changeset.
Improve error reporting when attempting to instantiate an interface or a non-static inner class.

    • -0
    • +43
    ./ObjectFactoryIntegrationTest.groovy
  1. … 9 more files in changeset.
Allow abstract service injection getter methods on decorated types.

    • -0
    • +31
    ./ObjectFactoryIntegrationTest.groovy
  1. … 6 more files in changeset.
Add some validation of extension constructors, and tweak some error messages.

  1. … 15 more files in changeset.
Ensure extensions attached to decorated objects have access to the same services as the decorated object.

    • -0
    • +322
    ./ObjectFactoryIntegrationTest.groovy
  1. … 14 more files in changeset.