Here is a quick operation like this:

  • First, open Terminal and switch to the folder where POM is located
  • Execute the following command

    gradle init --type pom

Normal results are as follows

H:\springcloudproject\springcloud\api-gateway>gradle init --type pom
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

> Task :init
Maven to Gradle conversion is an incubating feature.

BUILD SUCCESSFUL in 31s
2 actionable tasks: 2 executed

Wait for the completion of the implementation of the directory found no change, wait a moment or take the initiative to refresh the directory can be