Is there a way to use Kotlin extension methods fro...
# gradle
a
Is there a way to use Kotlin extension methods from a Groovy Gradle script? This article (https://touk.pl/blog/2017/08/24/using-kotlin-extensions-in-groovy) details two ways of using Kotlin extension methods in Groovy:
use(classname)
and the ExtensionModule file. The first method works for me in Gradle but I can't get the second to work. Also, is there a way in Groovy to call a Kotlin "function type with receiver" (e.g,
MyObject.() -> Unit
) so the
this
reference inside the lambda in Groovy refers to the receiver (currently, I have to use
it
in Groovy)?
g
No, function type with receiver will not work from Groovy, only using it, at least as I know, maybe by using some Groovy magic it's possible, but not directly