1.1.1
Gradle Kotlin DSL 1.1.1 Release Notes
Gradle Kotlin DSL 1.1.1 fixes issues around type-safe accessors generation correctness and introduces a missing reified generic Kotlin extension to create MapProperty objects.
v1.1.1 is included in Gradle 5.1.1.
To use it, upgrade your Gradle wrapper in the following fashion:
$ cd $YOUR_PROJECT_ROOT
$ gradle wrapper --gradle-version 5.1.1 --distribution-type all
Updates since v1.1.0 (Gradle 5.1)
-
Add convenience method for
MapPropertyintroduced in 5.1 (#1307)The new method makes working with map inputs a little more convenient:
open class Generator : DefaultTask() { @Input val properties = project.objects.mapProperty<String, Int>() @TaskAction fun generate() { properties.get().forEach { (key, value) -> logger.quiet("$key = $value") } } }