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

Make “doc” run before “assemble".

This commit is contained in:
Cedric Beust 2017-02-27 16:07:55 -08:00
parent 5edb52a69b
commit a35cf0cc87

View file

@ -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 { fun taskJavadoc(project: Project): TaskResult {
val docGenerator = ActorUtils.selectAffinityActor(project, context, context.pluginInfo.docContributors) val docGenerator = ActorUtils.selectAffinityActor(project, context, context.pluginInfo.docContributors)
if (docGenerator != null) { if (docGenerator != null) {