You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But currently you can't, because the cve method only takes Closure, making it only callable from Groovy.
All methods to configure extensions should have overloads taking Action<T>. This might affect Kotlin build scripts too but I haven't found out yet because other things break those anyway.
The text was updated successfully, but these errors were encountered:
I'm having a look. Is there a tidier way to do this?
/** * Allows programmatic configuration of the analyzer extension * @param configAction the action to configure the analyzers extension * @return the analyzers extension*/defanalyzers(Action<? super AnalyzerExtension>configAction) {
configAction.execute(analyzers)
return analyzers
}
The existing ones using Closure are using project.configure but the only overloads taking Action take and return a collection of things to configure, which is awkward for returning a single object.
If you're using configuring the plugin using Java code, you really want to write things like this:
But currently you can't, because the
cve
method only takesClosure
, making it only callable from Groovy.All methods to configure extensions should have overloads taking
Action<T>
. This might affect Kotlin build scripts too but I haven't found out yet because other things break those anyway.The text was updated successfully, but these errors were encountered: