The Gradle bootstrap plugin prepares the current project for Gradle. Typically it will create the relevant build.gradle, settings.gradle files. At the moment only conversion from maven3 is supported.
The plugin is currently *incubating* which means it is already useful but not everything might work perfectly. The api, plugin and task names may change before the final release. Please let us know your feedback or report any issues.
The plugin works by obtaining the effective pom of the current project by executing external 'mvn' command. Then it reads the dependencies and other information to generate build.gradle scripts.
The plugin is inspired by the maven2gradle tool founded and maintained by recognized leaders of Gradle community; created by Baruch Sadogursky with contributions from Antony Stubbs, Matthew McCullough and others.
(*) - Note: Your project will be considered multi-module only if your reactor is also a parent of at least one of your modules. Why so? Reactor project is built last, when Parent project is built first. The reactor has to be built first, because effective-pom Mojo generates needed output only if it finds modules in first project it encounters. Making reactor also a parent achieves this.
To convert a maven project follow the steps:
mvncommand can be executed and it runs maven3.
build.gradlefile in the root folder of your maven project.
apply plugin: 'maven2Gradle'and nothing else in the
gradle tasks. You should see
verbose(shows more output, including the effective pom) and
keepFile(keeps the obtained effective pom file).