1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -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
fun plugins(vararg dependencies : String) {
val executor = Kobalt.INJECTOR.getInstance(KobaltExecutors::class.java)
.newExecutor("BuildScript", 5)
val executor = Kobalt.INJECTOR.getInstance(KobaltExecutors::class.java).miscExecutor
val factory = Kobalt.INJECTOR.getInstance(DepFactory::class.java)
dependencies.forEach {
Plugins.dynamicPlugins.add(factory.create(it, executor))