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:
parent
108019ded3
commit
d5cd7ab63d
1 changed files with 1 additions and 2 deletions
|
@ -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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue