How to convert a Maven build to Gradle?

后端 未结 2 1590
失恋的感觉
失恋的感觉 2020-12-07 23:56

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

2条回答
  •  轮回少年
    2020-12-08 00:25

    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/

提交回复
热议问题