Migrating from Maven to Gradle
The first step is to run gradle init in the directory containing the (master) POM. This will convert the Maven build to a Gradle build, generating a settings.gradle file and one or more build.gradle files. For simpler Maven builds, this is all you need to do. For more complex Maven builds, it may be necessary to manually add functionality on the Gradle side that couldn’t be converted automatically.
- https://guides.gradle.org/migrating-from-maven/
- https://stackoverflow.com/questions/20862275/how-to-convert-a-maven-build-to-gradle
- https://www.baeldung.com/maven-convert-to-gradle
Although you have to write some parts manually by your self. there is an online service that may be an useful tool For complex Maven builds. maven2gradle is a project on github which can convert online dependencies element automatically from maven to gradle scripts. for using it,
- get to maven2gradle . URL
- open and select contains of your maven file.
- Paste your maven dependencies on the text box in that web page (with or without the dependencies root element).
- click Convert button.
For more information http://sagioto.github.io/maven2gradle/