Knotx / knotx-gradle-plugins

Gradle plugins that help manage Knot.x modules builds.
https://knotx.io
Apache License 2.0
1 stars 3 forks source link

Codegen plugin does not generate adocs #3

Closed malaskowski closed 5 years ago

malaskowski commented 5 years ago

Version

0.1.0

Description

It looks that generating ascidocs is no longer working when applying id("io.knotx.codegen") plugin.

Converters are generated but the code responsible for creating docs:

    options.compilerArgs = listOf(
            "-processor", "io.vertx.codegen.CodeGenProcessor",
            "-Acodegen.output=${project.projectDir}/docs"
    )

is not working.

tMaxx commented 5 years ago

The issue here is the order of operations. If unit-test plugin is declared in build file after codegen, then adocs don't generate. Tested in knotx-template-engine, it's what I had at hand.

I'll try to fix it, should be fairly simple :)