name.remal.dependencies-filter

Plugin class: name.remal.gradle_plugins.plugins.dependencies.DependenciesFilterPlugin

plugins {
    id 'name.remal.dependencies-filter' version '1.0.203'
}
plugins {
    id("name.remal.dependencies-filter") version "1.0.203"
}

 

This plugin adds dependencies.filter(Object dependency, Action<DependencyFilter> configurer) extension method.

dependency can be an instance of: * Dependency * Dependency notation

The extension method works this way: 1. If dependency is a dependency notation, then a dependency with this notation is created. 1. An instance of DependencyFilter is configured. 1. A cacheable self-resolving dependency is returned where filters are applied on original dependency.

 

name.remal.gradle_plugins.plugins.dependencies.filtered_dependencies.DependencyFilter

Property Type Description
includes MutableSet<String> ANT like include patterns of resources from original dependency.
excludes MutableSet<String> ANT like exclude patterns of resources from original dependency.
Method Description
void include(String... includes) Add ANT like include patterns of resources from original dependency.
void include(Iterable<String> includes) Add ANT like include patterns of resources from original dependency.
void exclude(String... excludes) Add ANT like exclude patterns of resources from original dependency.
void exclude(Iterable<String> excludes) ANT like exclude patterns of resources from original dependency.