Creating and configuring the project
Now that we have installed all required plugins in Eclipse IDE, we can create the project. We will also define and fetch the first external dependency of the project. The following subjects will be covered:
- Creating a new Groovy Eclipse project
- Creating an
ivy.xmlfile for Ivy
Creating a new Groovy Eclipse project
To create a Groovy-based project in Eclipse:
- Right-click an empty spot in the Package Explorer and choose
New|Other.... - In the
Select a wizarddialog, selectGroovy|Groovy Projectand clickNext. - Enter
GroovyWebserviceas the project name. - Click
Finishto generate the project.
Groovy Eclipse generates a bare-bones project. It does not contain any example file, so let's create one to validate the installation:
- Right-click the
(default package)entry from the project'ssrcdirectory and chooseNew|Other.... - In the
Select a wizarddialog, selectGroovy|Groovy Classand clickNext. - Enter
webserviceas the package name andMainas the class name. - Click...