Creating a new Counterclockwise project
Now that we've tried out Leiningen, we are ready to build our first project in Eclipse IDE using the Counterclockwise plugin:
- In Eclipse IDE, right-click on an empty spot in
Package Explorer
and chooseNew | Other
.... - The
Select a wizard
dialog appears. ChooseClojure | Clojure Project
and click onNext
. - Choose the
exploring-monads
project name. Make sure thedefault
Leiningen template is selected:
- Click on
Finish
to generate the project.
Note
Note that you can choose any other template supported by Leiningen here. There's one caveat: Counterclockwise's built-in Leiningen version is used to generate projects, and this version can be out of date. As we will see later in this chapter, this can be resolved by creating a project on the command-line.
The creation process of the project will take some time. When finished, take a look at the created project by expanding it in Package Explorer
. Its directory structure should look familiar.
Open the src/exploring_monads...