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

Put a context on the Kobalt object.

This commit is contained in:
Cedric Beust 2015-10-11 12:04:06 -07:00
parent 802b7d13bf
commit 36b41c11e9
2 changed files with 6 additions and 2 deletions

View file

@ -111,6 +111,8 @@ private class Main @Inject constructor(
if (! buildFile.exists()) {
jc.usage()
} else {
val context = KobaltContext(args)
Kobalt.context = context
val allProjects = script2.create(arrayListOf(buildFile)).findProjects()
//
@ -128,7 +130,7 @@ private class Main @Inject constructor(
}
}
plugins.applyPlugins(KobaltContext(args), allProjects)
plugins.applyPlugins(context, allProjects)
if (args.tasks) {
//