NamedDomainObjectContainerExtensions.kt

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Move all subprojects to the `subprojects` directory

    • -214
    • +0
    ./NamedDomainObjectContainerExtensions.kt
  1. … 521 more files in changeset.
Move `getByName(String, KClass<T>)` extension to `NamedDomainObjectCollection<out Any>` for maximum reuse

    • -11
    • +0
    ./NamedDomainObjectContainerExtensions.kt
  1. … 1 more file in changeset.
Provide typed getting by delegate on NamedDomainObjectContainer

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

    • -6
    • +6
    ./NamedDomainObjectContainerExtensions.kt
  1. … 1 more file in changeset.
Refine [Named|Polymorphic]DomainObject[Collection|Container] extensions

by making their whole API available with the invoke syntax

and adding reified getByName<T>(name) {} to NamedDomainObjectCollection

and adding reified maybeCreate<T>(name) to PolymorphicDomainObjectContainer

adding more coverage along the way

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

    • -27
    • +20
    ./NamedDomainObjectContainerExtensions.kt
  1. … 4 more files in changeset.
Normalize `inline` modifier layout

    • -6
    • +3
    ./NamedDomainObjectContainerExtensions.kt
  1. … 34 more files in changeset.
lint: missing new line before ")"

    • -6
    • +12
    ./NamedDomainObjectContainerExtensions.kt
  1. … 42 more files in changeset.
Add required square braces around kdoc links on @see & @throws tags

    • -4
    • +4
    ./NamedDomainObjectContainerExtensions.kt
  1. … 14 more files in changeset.
Allow explicit configuration of existing collection elements

Via delegated properties.

See #407

    • -18
    • +66
    ./NamedDomainObjectContainerExtensions.kt
  1. … 3 more files in changeset.
Polish `NamedDomainObjectContainerExtensions`

- Keep `inline` modifier in a separate line from `operator fun`

- Normalise function formatting

    • -7
    • +10
    ./NamedDomainObjectContainerExtensions.kt
Enable `val element: Type by getting` pattern

    • -0
    • +18
    ./NamedDomainObjectContainerExtensions.kt
  1. … 3 more files in changeset.
Rename base package to org.gradle.kotlin.dsl

    • -0
    • +160
    ./NamedDomainObjectContainerExtensions.kt
  1. … 313 more files in changeset.