Other project management options

Although nearly everyone uses Leiningen, Cursive also supports other options such as Maven and just using IntelliJ’s project management (for example, if you’re using Gradle or something similar).

Create a new project using Maven

  • File→New Project…
  • Select Maven Module.
  • Enter project name and location, and module name.
  • Choose an SDK or create a new one if you don’t have one set up, then press Next.
  • Choose the GroupId and ArtifactId, and archetype if required.
  • Press Finish, and select whether you want your new project in a new window.
  • File→Project Structure, then select Modules.
  • Select your new module, click + and select Clojure.
  • Click Ok, and start coding!

Maven’s other workflows are very similar to Cursive’s Leiningen integration.

Check out a project from GitHub

  • VCS→Checkout from Version Control→GitHub.
  • Enter your GitHub credentials and optionally set a master password.
  • Select your repo and where to download it to.
  • If your repo uses Leiningen, you’re good to go!

Create a new blank project

  • File→New Project…
  • Select Java Module.
  • Enter project name and location, and module name.
  • Choose an SDK or create a new one if you don’t have one set up, then press Next.
  • Select Clojure from the desired technologies list, and choose how to get Clojure.
  • Press Finish, and select whether you want your new project in a new window.
  • Start coding!