Skip to content

Commit

Permalink
fix issue java9-modularity#156: Circular dependency in complex projec…
Browse files Browse the repository at this point in the history
…t (in compileModuleInfoJava)
  • Loading branch information
siordache committed May 28, 2020
1 parent 50186d2 commit e4d717c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ private static Stream<Task> dependentCompileModuleInfoJavaTaskStream(Project pro
.filter(dependency -> dependency instanceof ProjectDependency)
.map(dependency -> ((ProjectDependency) dependency).getDependencyProject().getTasks())
.map(tasks -> tasks.findByName(CompileModuleOptions.COMPILE_MODULE_INFO_TASK_NAME))
.filter(Objects::nonNull);
.filter(Objects::nonNull)
.filter(task -> task.getProject() != project);
}
}

0 comments on commit e4d717c

Please sign in to comment.