orchidhq / Orchid

Build and deploy beautiful documentation sites that grow with you
https://orchid.run
GNU General Public License v3.0
517 stars 53 forks source link

Move Javadoc to an external lib to produce JSON, similar to Kotlindoc #173

Closed cjbrooks12 closed 6 years ago

cjbrooks12 commented 6 years ago

Having the Javadoc plugin embed the Javadoc tool internally is brittle, and requires manual addition of the tools.jar to the classpath. In addition, it is holding Orchid back from updating to Java 9+. This should be moved out of the Orchid plugin itself into a library that simply calls to the command-line to start the javadoc tool with a custom doclet. That doclet will product JSON of the code docs, and return that back to Orchid to turn into docs pages, just like the Kotlindoc plugin is doing currently with Dokka.