Can I use a Maven plugin (enunciate) in Gradle?

喜你入骨 提交于 2019-12-30 06:04:50

问题


I have a maven plugin called enunciate that generates nice API documentation. I'd rather use Gradle as my build tool but it looks like it's limited in this aspect or maybe I just don't know how to use it.

I'm wondering if it's possible to use a maven plugin (enunciate) in gradle somehow? Do I have to write an ant script and call that? So far I can't find a gradle example for enunciate so I'm guessing it's not supported?


回答1:


You can't use a Maven plugin as-is in Gradle; you'll have to port it to a Gradle plugin. How difficult this is depends on how many Maven APIs the plugin is using. Another strategy might be to call into Maven via Gradle's Exec task.




回答2:


As of October 2015, a Gradle plugin for Enunciate is available.

https://github.com/stoicflame/enunciate-gradle



来源:https://stackoverflow.com/questions/19642990/can-i-use-a-maven-plugin-enunciate-in-gradle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!