Generate the idea project according to the build.gradle and setting.gradle files:
gradle idea
Gradle has developed rapidly in recent years, and more and more projects on github have begun to use gradle to build, but not everyone is familiar with gradle. The following method can convert gradle into a maven project, provided the gradle project directory structure is maintained The same convention as maven, that is, the set of /src/main/java.
一、gradle --> maven
Add the following content to build.gradle (group, version can be modified by yourself, artifactId defaults to the directory name)
apply plugin: 'java'
apply plugin: 'maven'
group = 'com.101tec'
version = '0.7-dev'
sourceCompatibility = 1.6
Then ./gradle build, after success, the pom-default.xml file will be generated in the build\poms directory, copy it to the root directory, and rename it to pom.xml
Of course, pom.xml can also be generated directly in the root directory by modifying build.gradle
二、maven --> gradle
Make sure that the version above gradle 2.0 is installed on the machine
Then run in the maven root directory
gradle init --type pom
http://www.cnblogs.com/yjmyzz/p/gradle-to-maven.html