Package com.diffplug.gradle
Class GroovyCompat
java.lang.Object
com.diffplug.gradle.GroovyCompat
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> groovy.lang.Closure<T>closureFrom(Object owner, Consumer<T> closure) Creates a GroovyClosurefrom a Java 8Consumer, uses the delegate as the input.static <T> groovy.lang.Closure<T>closureFrom(Object owner, Function<T, T> closure) Creates a GroovyClosurefrom a Java 8Function, uses the delegate as the input.