From a35cf0cc87be33cdff0e12becb5d3b3aa7b8047f Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Mon, 27 Feb 2017 16:07:55 -0800 Subject: [PATCH] =?UTF-8?q?Make=20=E2=80=9Cdoc=E2=80=9D=20run=20before=20?= =?UTF-8?q?=E2=80=9Cassemble".?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../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 fc7b83cd..c27e26bb 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 @@ -219,7 +219,8 @@ open class JvmCompilerPlugin @Inject constructor( } } - @Task(name = "doc", description = "Generate the documentation for the project", group = GROUP_DOCUMENTATION) + @Task(name = "doc", description = "Generate the documentation for the project", group = GROUP_DOCUMENTATION, + runBefore = arrayOf("assemble")) fun taskJavadoc(project: Project): TaskResult { val docGenerator = ActorUtils.selectAffinityActor(project, context, context.pluginInfo.docContributors) if (docGenerator != null) {