ExtraPropertiesExtensions.kt

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

  1. … 521 more files in changeset.
Normalize `inline` modifier layout

  1. … 34 more files in changeset.
Make return type explicit

  1. … 2 more files in changeset.
Simplify `NonNullExtraPropertyDelegate.getValue`

Unify PropertyDelegate and ExtraPropertyDelegate

as PropertyDelegate and MutablePropertyDelegate : PropertyDelegate

  1. … 1 more file in changeset.
Rename receiver parameter for consistency

Extract property delegate type for typed extra properties

to remove access to KProperty::returnType.isMarkedNullable on each

extra property access

Unify access to extra property via Kotlin delegated property

by making the property delegate implementation the same as for

Gradle/Project properties.

and adding some coverage

this is not a breaking change

  1. … 2 more files in changeset.
lint: missing new line before ")"

  1. … 42 more files in changeset.
Add required square braces around kdoc links on @see & @throws tags

  1. … 14 more files in changeset.
Remove redundant upper-bounds

Restore extra properties type info & allow nullability

Optional extra properties can now be expressed via nullability of the

property type.

val name by extra { null } // creates null extra property

val name: String by extra // throws NPE on property usage

val name: String? by extra // works as expected

This commit enhances the `extra-properties` sample to demonstrate this.

See #512

  1. … 3 more files in changeset.
Adjust code to nullability changes in the Gradle API

  1. … 8 more files in changeset.
Rename base package to org.gradle.kotlin.dsl

    • -0
    • +94
    ./ExtraPropertiesExtensions.kt
  1. … 313 more files in changeset.