Skip to content
This repository has been archived by the owner on Jul 9, 2022. It is now read-only.

New gradle project wizard

kdvolder edited this page Aug 1, 2012 · 3 revisions

Last updated and checked to work with version 3.0.0 of the tools

The New Gradle Project Wizard is a feature that was added to the tools in version 3.0.0. To open the wizard use the "File >> New >> Project" Menu.

file-new-project-menu-image

Find the Wizard in the "Gradle" category. Then click the 'Next' Button.

new-project-wizard-selection-image

The first and only page of the Wizard is shown in the screenshot below.

new-gradle-project-wizard

The Wizard creates new projects in your workspace by importing a selected sample project into your workspace. Therefore you have to select one of the available sample projects before you can proceed by clicking the 'Finish' Button.

new-gradle-project-wizard

The 'use default location' option selects whether or not you want to create the project in your Eclipse workspace area on the file system (Default) or some other location.

The following samples are currently available:

  • Java Quickstart: A 'single project' sample project from the official Gradle distribution. It is described here.
  • Java API and Implementation: Another 'single project' sample from the official Gradle distribution. Shows you how to customize your project's layout.
  • Flat Java Multi Project: A sample we created to demonstrates the most common
    'multi-project' layout that works well within Eclipse. There is a single root project that has most of the build logic, and a number of sub-projects containing the actual source code of the project. Many SpringSource projects have Gradle builds and use this layout (e.g. spring-integration, spring-framework, spring-security).

Note:

  • 'multi-project' samples will result in the creation of several projects in your workspace. Only the root project will get the name you typed into the Wizard. There is currently no mechanism to select names for subprojects. These project's names are simply 'hard-coded' into the sample project(s).
Clone this wiki locally