mirror of https://github.com/apache/lucene.git
Avoid creating a circular dependency between shared subtasks.
This commit is contained in:
parent
4c2de7ef43
commit
108cd85375
|
@ -48,8 +48,11 @@ configure([
|
|||
}
|
||||
}
|
||||
|
||||
def otherDeps = deps - [tidy]
|
||||
visited.each { Task t -> t.mustRunAfter(otherDeps) }
|
||||
def intersection = visited.intersect(deps)
|
||||
def tidyDeps = visited - intersection + [tidy]
|
||||
def genDeps = deps - intersection
|
||||
|
||||
tidyDeps.each { Task t -> t.mustRunAfter(genDeps) }
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue