mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 08:38:13 -07:00
Apply plug-ins after running the interceptors.
This commit is contained in:
parent
1a58b70a8e
commit
f29ec48ddf
2 changed files with 7 additions and 4 deletions
|
@ -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)
|
runClasspathInterceptors(allProjects)
|
||||||
|
|
||||||
log(2, "Final list of repos:\n " + Kobalt.repos.joinToString("\n "))
|
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) {
|
if (args.projectInfo) {
|
||||||
// --projectInfo
|
// --projectInfo
|
||||||
allProjects.forEach {
|
allProjects.forEach {
|
||||||
|
|
|
@ -55,9 +55,6 @@ public class BuildFileCompiler @Inject constructor(@Assisted("buildFiles") val b
|
||||||
// Find all the projects in the build file, possibly compiling them
|
// Find all the projects in the build file, possibly compiling them
|
||||||
//
|
//
|
||||||
val projectResult = findProjects(context)
|
val projectResult = findProjects(context)
|
||||||
if (projectResult.taskResult.success) {
|
|
||||||
plugins.applyPlugins(context, projectResult.projects)
|
|
||||||
}
|
|
||||||
|
|
||||||
return projectResult
|
return projectResult
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue