Package io.micronaut.gradle
Class LenientGradle
java.lang.Object
io.micronaut.gradle.LenientGradle
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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 toDomainObjectCollection.withType(Class, Action)
which will not require the class to be present on classpath.
-
Method Details
-
ifTypePresent
-
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 toDomainObjectCollection.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 collectionname
- the name of the type to look forconsumer
- the consumer
-