asciidoctor / asciidoctor-gradle-plugin

A Gradle plugin that uses Asciidoctor via JRuby to process AsciiDoc source files within the project.
https://asciidoctor.github.io/asciidoctor-gradle-plugin/
Apache License 2.0
286 stars 121 forks source link

Add support for Asciidoclet processing of JavaDoc files #244

Open msgilligan opened 6 years ago

msgilligan commented 6 years ago

It would be nice if there were a Gradle DSL for using Asciidoclet. Perhaps it could be bundled in this plugin or be a separate (child or sibling) plugin.

Currently the Gradle configuration for Asciidoclet is somewhat verbose and repeats many lines of boilerplate. It is also typical (or should be typical, especially if configuration were made easier) for projects using Asciidoctor for producing documents to also use Asciidoctor formatting in Java source and vice-versa.

msgilligan commented 6 years ago

I just noticed @mojavelinux had suggested this back in 2014: https://github.com/asciidoctor/asciidoctor-gradle-plugin/issues/95#issuecomment-52451549

ysb33r commented 6 years ago

I was thinking along the same lines when I saw the asciidoclet issues just some days ago. The solution is to either add an additional plugin on the 2.0 development branch OR, modify the asciidoclet project to also produce a Gradle plugin.

Let's just assume we add an additional plugin here:

BTW has Asciidoclet been updated to use the new docket API -> https://bugs.java.com/view_bug.do?bug_id=JDK-8177484

msgilligan commented 6 years ago

Has Asciidoclet been updated to use the new doclet API

Not yet, but we're now in the planning process for this work: https://github.com/asciidoctor/asciidoclet/issues/76

ysb33r commented 6 years ago

Let's explore this concept. We have options for 2.0.