From abe65baa49ea1f8b7fed509f27780d63aa4a550b Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Mon, 18 Apr 2016 21:41:25 -0700 Subject: [PATCH] Dependent projects were no longer being returned by GetDependenciesCommand. --- .../main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt index baaa1de3..afbea223 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt @@ -63,7 +63,6 @@ open class JvmCompilerPlugin @Inject constructor( override fun apply(project: Project, context: KobaltContext) { super.apply(project, context) - project.projectProperties.put(DEPENDENT_PROJECTS, projects()) taskContributor.addIncrementalVariantTasks(this, project, context, "compile", runTask = { taskCompile(project) }) @@ -234,6 +233,8 @@ open class JvmCompilerPlugin @Inject constructor( with(ProjectDescription(project, dependents)) { allProjects.add(this) } + + project.projectProperties.put(DEPENDENT_PROJECTS, allProjects) } @Task(name = "doc", description = "Generate the documentation for the project")