Skip to content

Commit 97ae186

Browse files
committed
Removed duplicate dependencies before calling Closure
1 parent 4b64140 commit 97ae186

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

j2cl-tasks/src/main/java/com/vertispan/j2cl/build/provided/ClosureTask.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ public Task resolve(Project project, Config config) {
163163
// Bytecode sources will include original input sources
164164
// as well as generated input when the jar was built
165165
input(p, OutputTypes.BYTECODE)
166-
));
166+
))
167+
// Removing any duplicate dependencies that would otherwise trigger unjustified duplicate paths detection in Closure
168+
.distinct();
167169

168170
Stream<Input> jsFromJsZips = scope(project.getDependencies(), Dependency.Scope.RUNTIME)
169171
.stream()

0 commit comments

Comments
 (0)