NamedDomainObjectContainerExtensionsTest.kt

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Convert to multi-project build in preparation to adding new modules

See #304

    • -230
    • +0
    ./NamedDomainObjectContainerExtensionsTest.kt
  1. … 263 more files in changeset.
Allow element creation via delegate provider

After considering a few different names for the delegate provider (`new`

/ `factory` / `builder` / `creator` / `creating`) I settled on

`creating`:

* it shares the same prefix with the element creation methods

(`create`) so it's arguably more discoverable

* it reads more like prose, specially when coupled with the type

tasks {

val deploy by creating(Copy::class) {

// ...

}

}

Resolves #35

    • -1
    • +119
    ./NamedDomainObjectContainerExtensionsTest.kt
  1. … 3 more files in changeset.
Revert "Invoke `create` instead of `maybeCreate` on container configuration"

This reverts commit 46ad76191795284e68ce40c11679df902ca91a49.

It turns out the correct behaviour is actually `maybeCreate`.

    • -8
    • +11
    ./NamedDomainObjectContainerExtensionsTest.kt
  1. … 2 more files in changeset.
Invoke `create` instead of `maybeCreate` on container configuration

For that is the behaviour of `NamedDomainObjectContainer#configure`.

See: #35

    • -11
    • +8
    ./NamedDomainObjectContainerExtensionsTest.kt
  1. … 2 more files in changeset.
Allow delegated property access to NamedDomainObjectCollection items

See: #35, #200

    • -4
    • +1
    ./NamedDomainObjectContainerExtensionsTest.kt
  1. … 6 more files in changeset.
Support convenient configuration of NamedDomainObjectContainers

See: #35, #200

    • -0
    • +115
    ./NamedDomainObjectContainerExtensionsTest.kt
  1. … 1 more file in changeset.