Class LenientGradle

java.lang.Object
io.micronaut.gradle.LenientGradle

public class LenientGradle extends Object
  • Method Details

    • ifTypePresent

      public static <T> void ifTypePresent(String typeName, Consumer<? super Class<T>> consumer)
    • withType

      public static <T> void withType(org.gradle.api.DomainObjectCollection<T> collection, String name, org.gradle.api.Action<? super T> consumer)
      An alternative method call to DomainObjectCollection.withType(Class, Action) which will not require the class to be present on classpath.
      Type Parameters:
      T - the type of the collection
      Parameters:
      collection - the domain object collection
      name - the name of the type to look for
      consumer - the consumer