How to convert a Maven build to Gradle?
I know I should be working with my build.gradle
and init.gradle
files but I don't know what to write or how to point to my project folder with the pom.xml
file.
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/