Reputation: 7749
I've had a java maven project, and now I converted to gradle because I have to write some cutom build script.
I'm wondering if I still need to keep pom.xml
. Do I need to add my dependencies to pom.xml
, or I should get rid of pom.xml
and add them to build.gradle
? Does gradle replace maven ?
Upvotes: 1
Views: 1664
Reputation: 1547
Gradle and Maven are two different build systems. They are quite the same but have some differences. But if you convert your maven project to gradle, then your pom.xml
is useless from now on. You can easily convert your maven project to gradle using gradle's incubating feature with this command gradle init --type pom
. Then your scripts will be added to build.gradle
file. This is still an incubating feature though. You can also do it from stract. I suggest you to read the following document.
Upvotes: 3