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

2019-02-12 16:17发布

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?

2条回答
兄弟一词,经得起流年.
2楼-- · 2019-02-12 17:13

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

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

查看更多
ら.Afraid
3楼-- · 2019-02-12 17:16

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.

查看更多
登录 后发表回答