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

Apply plug-ins after running the interceptors.

This commit is contained in:
Cedric Beust 2016-04-07 19:02:26 -08:00
parent 1a58b70a8e
commit f29ec48ddf
2 changed files with 7 additions and 4 deletions

View file

@ -201,12 +201,18 @@ private class Main @Inject constructor(
}
//
// Run all their dependencies through the IDependencyInterceptors
// Run all the dependencies through the IDependencyInterceptors
//
runClasspathInterceptors(allProjects)
log(2, "Final list of repos:\n " + Kobalt.repos.joinToString("\n "))
//
// Call apply() on all plug-ins now that the repos are set up
//
plugins.applyPlugins(Kobalt.context!!, allProjects)
if (args.projectInfo) {
// --projectInfo
allProjects.forEach {

View file

@ -55,9 +55,6 @@ public class BuildFileCompiler @Inject constructor(@Assisted("buildFiles") val b
// Find all the projects in the build file, possibly compiling them
//
val projectResult = findProjects(context)
if (projectResult.taskResult.success) {
plugins.applyPlugins(context, projectResult.projects)
}
return projectResult
}