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.xml
file for Ivy
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 wizard
dialog, selectGroovy
|Groovy Project
and clickNext
. - Enter
GroovyWebservice
as the project name. - Click
Finish
to 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'ssrc
directory and chooseNew
|Other...
. - In the
Select a wizard
dialog, selectGroovy
|Groovy Class
and clickNext
. - Enter
webservice
as the package name andMain
as the class name. - Click...