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:
parent
6d46ba2d0e
commit
5720356814
2 changed files with 2 additions and 1 deletions
|
@ -116,6 +116,7 @@ fun buildFileClasspath(vararg deps: String) {
|
|||
}
|
||||
|
||||
fun newBuildFileClasspath(vararg deps: String) {
|
||||
//FIXME newBuildFileClasspath called twice
|
||||
deps.forEach { Kobalt.addBuildFileClasspath(it) }
|
||||
}
|
||||
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue