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

+ added cleanup for buildFileClasspath collection

+ added FIXME: newBuildFileClasspath called twice
This commit is contained in:
Dmitry Zhuravlev 2017-04-17 12:30:12 +03:00
parent 6d46ba2d0e
commit 5720356814
2 changed files with 2 additions and 1 deletions

View file

@ -116,6 +116,7 @@ fun buildFileClasspath(vararg deps: String) {
}
fun newBuildFileClasspath(vararg deps: String) {
//FIXME newBuildFileClasspath called twice
deps.forEach { Kobalt.addBuildFileClasspath(it) }
}

View file

@ -72,7 +72,6 @@ class Kobalt {
fun addBuildFileClasspath(dep: String) {
val dependencyManager = Kobalt.INJECTOR.getInstance(DependencyManager::class.java)
//FIXME buildFileClasspath collection never becomes clear! each synchronization will add the same dependencies to it
buildFileClasspath.add(dependencyManager.create(dep))
}
@ -136,6 +135,7 @@ class Kobalt {
fun cleanUp() {
buildSourceDirs.clear()
buildFileClasspath.clear()
}
}
}