Class LenientGradle

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

public class LenientGradle extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> void
    ifTypePresent(String typeName, Consumer<? super Class<T>> consumer)
     
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LenientGradle

      public LenientGradle()
  • 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