Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IDE for Play 2.0 framework and Scala

I'm recently playing with Play 2.0. I found in the docs that it can generate a project for Eclipse, Idea or Netbeans. However it seems this works only for pre-2.0 versions.

How do you configure a Play 2.0 project for IntelliJ Idea, or what other IDE would you recommend?

like image 288
amorfis Avatar asked Jan 26 '12 23:01

amorfis


People also ask

Which IDE can be used for play application?

Intellij IDEA lets you quickly create a Play application without using a command prompt. You don't need to configure anything outside of the IDE, the sbt build tool takes care of downloading appropriate libraries, resolving dependencies and building the project.

What is play framework in Scala?

Play Framework makes it easy to build web applications with Java & Scala. Play is based on a lightweight, stateless, web-friendly architecture. Built on Akka, Play provides predictable and minimal resource consumption (CPU, memory, threads) for highly-scalable applications.

Is Play framework still used?

Play is rock-solid and used by hundreds of thousands of Java and Scala developers every month. Play is still extremely relevant to today's application and web development and has a passionate and very capable community around it ensuring that it has many good years left.


2 Answers

At the time of the question Play 2.0 was still in beta and lacked some support and documentation. Recently they've released methods to automatically generate the files you need to import your project into some IDE.

Do the following:

  1. Create your project
  2. Go to the folder of the project
  3. Run play to open the sbt console
  4. Run eclipse to create an Eclipse project
  5. Run idea to create an IntelliJ Idea project

Enjoy hacking! :)

like image 140
Pere Villega Avatar answered Sep 30 '22 15:09

Pere Villega


Play2.0 is still in active development. IDE support will be available, but not quite yet. It is worth keeping an eye on the nightly builds as there have been discussions about the IDE support recently, so it may be coming soon!

like image 26
Codemwnci Avatar answered Sep 30 '22 14:09

Codemwnci