I want to integrate a maven project into my gradle build process. Although I was successful in converting the maven project (which is a war overlay project) into a gradle project, there are several drawbacks doing this. First of all the maven tomcat plugin can easily create a runnable jar with an embedded tomcat instance. I could not find a gradle plugin which does this job. To solve the problem I see four different approaches, I wonder which one would be the best or if there is another possibility.
- Convert maven project to gradle. As mentioned before this works, but I could not find a way to create a jar with embedded tomcat with this approach.
- The maven project will have an additional build.gradle which has tasks to execute the maven goals (for example ant.exec)
- I use maven for all my projects (not really an option for me)
- Use maven as root project and execute gradle tasks from maven
Any other ideas or suggestions?