mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
gradle: handle cycles during configuration project dependencies collect IDEA-158517
This commit is contained in:
+2
@@ -143,8 +143,10 @@ class DependencyResolverImpl implements DependencyResolver {
|
||||
Map<ComponentIdentifier, ComponentArtifactsResult> componentResultsMap = [:];
|
||||
componentResults.each { componentResultsMap.put(it.id, it) }
|
||||
|
||||
Set<Configuration> processedConfigurations = new HashSet<>()
|
||||
def projectDeps
|
||||
projectDeps = { Configuration conf, map = ArrayListMultimap.create() ->
|
||||
if(!processedConfigurations.add(conf)) return map
|
||||
conf.incoming.dependencies.findAll { it instanceof ProjectDependency }.each { it ->
|
||||
map.put(toComponentIdentifier(it.group, it.name, it.version), it as ProjectDependency)
|
||||
projectDeps((it as ProjectDependency).projectConfiguration, map)
|
||||
|
||||
Reference in New Issue
Block a user