NamedDomainObjectContainerExtensions.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

    • -160
    • +0
    ./NamedDomainObjectContainerExtensions.kt
  1. … 263 more files in changeset.
Describe NamedDomainObjectContainerScope, NamedDomainObjectContainerDelegateProvider and PolymorphicDomainObjectContainerDelegateProvider

    • -2
    • +18
    ./NamedDomainObjectContainerExtensions.kt
Rename `NamedDomainObjectContainer{Configuration => Scope}`

    • -3
    • +3
    ./NamedDomainObjectContainerExtensions.kt
Polish

- Normalise placement of `private`, `protected`, `internal` and

`inline` modifiers

    • -1
    • +2
    ./NamedDomainObjectContainerExtensions.kt
  1. … 42 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
    • +82
    ./NamedDomainObjectContainerExtensions.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`.

    • -2
    • +2
    ./NamedDomainObjectContainerExtensions.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

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

See: #35, #200

    • -15
    • +0
    ./NamedDomainObjectContainerExtensions.kt
  1. … 6 more files in changeset.
Support convenient configuration of NamedDomainObjectContainers

See: #35, #200

    • -0
    • +77
    ./NamedDomainObjectContainerExtensions.kt
  1. … 1 more file in changeset.