mirror of
https://github.com/apache/lucene.git
synced 2025-02-21 17:46:28 +00:00
Avoid creating a circular dependency between shared subtasks.
This commit is contained in:
parent
4c2de7ef43
commit
108cd85375
@ -47,9 +47,12 @@ configure([
|
||||
queue.addAll(dep.getDependencies(t))
|
||||
}
|
||||
}
|
||||
|
||||
def intersection = visited.intersect(deps)
|
||||
def tidyDeps = visited - intersection + [tidy]
|
||||
def genDeps = deps - intersection
|
||||
|
||||
def otherDeps = deps - [tidy]
|
||||
visited.each { Task t -> t.mustRunAfter(otherDeps) }
|
||||
tidyDeps.each { Task t -> t.mustRunAfter(genDeps) }
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user