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

Use the misc executor (otherwise threads left hanging).

This commit is contained in:
Cedric Beust 2015-10-13 01:25:47 -07:00
parent 108019ded3
commit d5cd7ab63d

View file

@ -23,8 +23,7 @@ fun plugins(vararg dependency : IClasspathDependency) {
@Directive @Directive
fun plugins(vararg dependencies : String) { fun plugins(vararg dependencies : String) {
val executor = Kobalt.INJECTOR.getInstance(KobaltExecutors::class.java) val executor = Kobalt.INJECTOR.getInstance(KobaltExecutors::class.java).miscExecutor
.newExecutor("BuildScript", 5)
val factory = Kobalt.INJECTOR.getInstance(DepFactory::class.java) val factory = Kobalt.INJECTOR.getInstance(DepFactory::class.java)
dependencies.forEach { dependencies.forEach {
Plugins.dynamicPlugins.add(factory.create(it, executor)) Plugins.dynamicPlugins.add(factory.create(it, executor))