i tried every method i could think of to get to a closure created under dependencies.ext by a gradle plugin written in groovy that I have to use for this application
Actually the sample does exactly that, invoking a Groovy Closure that was registered as an extra property.
In the sample, the extra property is set on the
Project
but it shouldn’t matter.
eskatos
08/09/2018, 9:36 AM
Copy code
dependencies {
val theClosure = (dependencies as ExtensionAware).extra["someName"] as groovy.lang.Closure<Any?>
theClosure("the", "arguments")
}