-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't resolve configurations in config phase.
- Loading branch information
1 parent
708b5dc
commit 5013695
Showing
3 changed files
with
32 additions
and
7 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
.../groovy/com/github/jengelman/gradle/plugins/shadow/internal/DependencyFileCollection.java
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,29 @@ | ||
package com.github.jengelman.gradle.plugins.shadow.internal; | ||
|
||
import org.gradle.api.artifacts.Configuration; | ||
import org.gradle.api.internal.file.AbstractFileCollection; | ||
|
||
import java.io.File; | ||
import java.util.List; | ||
import java.util.Set; | ||
|
||
public class DependencyFileCollection extends AbstractFileCollection { | ||
|
||
private final DependencyFilter filter; | ||
private final List<Configuration> configurations; | ||
|
||
public DependencyFileCollection(DependencyFilter filter, List<Configuration> configurations) { | ||
this.filter = filter; | ||
this.configurations = configurations; | ||
} | ||
|
||
@Override | ||
public String getDisplayName() { | ||
return "Shadow Dependencies to Merge"; | ||
} | ||
|
||
@Override | ||
public Set<File> getFiles() { | ||
return filter.resolve(configurations).getFiles(); | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.2.3 | ||
1.3.0-SNAPSHOT |