Package io.github.suppierk.codegen.util
Class Extensions
java.lang.Object
io.github.suppierk.codegen.util.Extensions
Utility class for common extension-related functionality. Currently, provides a Groovy
Closure-aware helper that mirrors the behaviour of Gradle's built-in DSL when delegating
closures to extension objects.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigureWithClosure(groovy.lang.Closure<?> closure, Object target) Configures given object using given closure.
-
Method Details
-
configureWithClosure
public static void configureWithClosure(@Nonnull groovy.lang.Closure<?> closure, @Nonnull Object target) Configures given object using given closure.- Parameters:
closure- to applytarget- to configure
-