You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a multimodule project with mixed java/groovy sources I'd like to generate aggregated javadocs in the root project (for site generation) as well as javadoc jars in the individual subprojects (because you cannot deploy anything to Maven Central without it).
So far I use the gplus:generateStubs goal before running the maven:javadoc plugin, but sadly gplus:generateStubs loses all the original javadocs of the Groovy sources (probably a Groovy problem)
I considered using the gplus:groovydoc goal, but this has no "aggregate" mode like maven:javadoc has and I neither detected an option to generate a jar file from the javadocs
It would be great if any of the two issues could be improved. Or did I miss something?
The text was updated successfully, but these errors were encountered:
Long story short, yea, Groovy's stub generation code doesn't keep the Javadoc. There's been talk of changing Groovy's model and merging in some of the changes Groovy-Eclipse has in their forked Groovy classes, but this is an issue that's been talked about for years and I don't know when it's ever going to get done. I could fork Groovy's code like GMaven used to, but this makes for some rather onerous maintenance demands and I couldn't think of another option. I discuss why I decided against that approach in the first place on the About page.
As a workaround, you should be able to copy the Groovydoc as files from each module into a single consolidated location with either GMavenPlus's execute goal or the AntRun plugin, right? Then you'd use the Assembly plugin to create a jar from that location. I know that is a bit cumbersome -- I'll have a look at what the Javadoc Plugin does, and maybe I can enhance the Groovydoc goal to offer the option to do that consolidation for you.
Changing the GroovyDoc mojos to implement MavenReport is not trivial. One piece that's still missing is how I'd connect Groovy's Groovydoc-producing classes to a Sink. I'm still investigating.
In a multimodule project with mixed java/groovy sources I'd like to generate aggregated javadocs in the root project (for site generation) as well as javadoc jars in the individual subprojects (because you cannot deploy anything to Maven Central without it).
It would be great if any of the two issues could be improved. Or did I miss something?
The text was updated successfully, but these errors were encountered: