Class Extensions

java.lang.Object
io.github.suppierk.codegen.util.Extensions

public final class Extensions extends Object
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 Details

    • configureWithClosure

      public static void configureWithClosure(@Nonnull groovy.lang.Closure<?> closure, @Nonnull Object target)
      Configures given object using given closure.
      Parameters:
      closure - to apply
      target - to configure