1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Fix the extractHost() missing method exception.

Fixes https://github.com/cbeust/kobalt/issues/287
This commit is contained in:
Cedric Beust 2016-07-20 01:17:01 -08:00
parent 5d6272065c
commit 3a2ba61c6e

View file

@ -93,7 +93,11 @@ class DependencyManager @Inject constructor(val executors: KobaltExecutors, val
result.addAll(runClasspathContributors(project, context)) result.addAll(runClasspathContributors(project, context))
result.addAll(dependentProjectDependencies(project, context)) result.addAll(dependentProjectDependencies(project, context))
return result // Dependencies get reordered by transitiveClosure() but since we just added a bunch of new ones,
// we need to reorder them again in case we're adding dependencies that are already present
// but with a different version
val reordered = reorderDependencies(result)
return reordered
} }
private fun runClasspathContributors(project: Project?, context: KobaltContext) : private fun runClasspathContributors(project: Project?, context: KobaltContext) :