Package com.diffplug.gradle
Class GroovyCompat
- java.lang.Object
-
- com.diffplug.gradle.GroovyCompat
-
public class GroovyCompat extends Object
-
-
Constructor Summary
Constructors Constructor Description GroovyCompat()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> groovy.lang.Closure<T>
closureFrom(Object owner, Consumer<T> closure)
Creates a GroovyClosure
from a Java 8Consumer
, uses the delegate as the input.static <T> groovy.lang.Closure<T>
closureFrom(Object owner, Function<T,T> closure)
Creates a GroovyClosure
from a Java 8Function
, uses the delegate as the input.
-