Search code examples
javaspringmavengradlenetbeans

Can you have both maven's and gradle in same java build?


We already started our project in mavens(spring mvc) but realized gradle is better for managing big to enterprise level builds like our project. Is there a way to keep mavens but also add on gradle to the same build?

And if yes, how would I add gradle to my existing maven project? thanks.


Solution

  • I guess you need to make a decision:

    • Invoke maven from gradle
    • Invoke gradle from maven

    If your end goal is to move to gradle then I suggest invoking maven from gradle. It looks like there's a plugin here which will do the job