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

Fix version processor bug.

Fixes https://github.com/cbeust/kobalt/issues/297

The problem was that when determining the dependencies of a project from the projects it depends on, the current project was included in that collection.
This commit is contained in:
Cedric Beust 2016-08-11 02:46:26 -08:00
parent 5ed955c5f9
commit 31d219eb52

View file

@ -168,7 +168,7 @@ class DependencyManager2 @Inject constructor(val aether: KobaltAether) {
result.add(FileDependency(classDir))
}
}
transitiveProjects.forEach { p ->
transitiveProjects.filter { it.name != project?.name }.forEach { p ->
maybeAddClassDir(KFiles.joinDir(p.directory, p.classesDir(context)))
maybeAddClassDir(KFiles.makeOutputTestDir(p).path)
}