-
Notifications
You must be signed in to change notification settings - Fork 397
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
54 additions
and
75 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
api/src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/internal/DependencyFilter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package com.github.jengelman.gradle.plugins.shadow.internal | ||
|
||
import groovy.lang.Closure | ||
import org.gradle.api.artifacts.Dependency | ||
import org.gradle.api.artifacts.ResolvedDependency | ||
import org.gradle.api.file.FileCollection | ||
import org.gradle.api.specs.Spec | ||
|
||
public interface DependencyFilter { | ||
/** | ||
* Resolve a FileCollection against the include/exclude rules in the filter. | ||
*/ | ||
public fun resolve(configuration: FileCollection): FileCollection | ||
|
||
/** | ||
* Resolve all FileCollections against the include/exclude ruels in the filter and combine the results. | ||
*/ | ||
public fun resolve(configurations: MutableCollection<FileCollection>): FileCollection | ||
|
||
/** | ||
* Exclude dependencies that match the provided spec. | ||
*/ | ||
public fun exclude(spec: Spec<in ResolvedDependency>): DependencyFilter | ||
|
||
/** | ||
* Include dependencies that match the provided spec. | ||
*/ | ||
public fun include(spec: Spec<in ResolvedDependency>): DependencyFilter | ||
|
||
/** | ||
* Create a spec that matches the provided project notation on group, name, and version. | ||
*/ | ||
public fun project(notation: Map<String, *>): Spec<in ResolvedDependency> | ||
|
||
/** | ||
* Create a spec that matches the default configuration for the provided project path on group, name, and version. | ||
*/ | ||
public fun project(notation: String): Spec<in ResolvedDependency> | ||
|
||
/** | ||
* Create a spec that matches dependencies using the provided notation on group, name, and version. | ||
*/ | ||
public fun dependency(notation: Any): Spec<in ResolvedDependency> | ||
|
||
/** | ||
* Create a spec that matches the provided dependency on group, name, and version. | ||
*/ | ||
public fun dependency(dependency: Dependency): Spec<in ResolvedDependency> | ||
|
||
/** | ||
* Create a spec that matches the provided closure. | ||
*/ | ||
public fun dependency(spec: Closure<*>): Spec<in ResolvedDependency> | ||
} |
75 changes: 0 additions & 75 deletions
75
src/main/groovy/com/github/jengelman/gradle/plugins/shadow/internal/DependencyFilter.groovy
This file was deleted.
Oops, something went wrong.