Ji Sungbin
08/19/2022, 1:41 PMGrégory Lureau
08/19/2022, 1:44 PMJi Sungbin
08/19/2022, 1:45 PMmkrussel
08/19/2022, 1:49 PMjarTask = this as Jar .
Or use tasks.named<Jar>("jar") { // this is now a JarJi Sungbin
08/19/2022, 1:53 PMmkrussel
08/19/2022, 1:55 PMJi Sungbin
08/19/2022, 1:56 PMVampire
08/19/2022, 2:00 PMsam-with-receiver compiler plugin.
With this plugin you can specify classes / interfaces for which you can use foo.configure { doSomething() } instead of foo.configure { it.doSomething() }. In the Kotlin DSL (and also if you apply the kotlin-dsl plugin to a project) this plugin is configured to for example include the Action interface. In the Google code you linked, this compiler plugin is not active, so you have to use the foo.configure { it.doSomething() } version there.Ji Sungbin
08/19/2022, 2:28 PM