Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 396
Chip Avatar asked Oct 28 '13 19:10

Chip


1 Answers

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.

like image 68
Peter Niederwieser Avatar answered Oct 20 '22 01:10

Peter Niederwieser