I created a new Play Framework project using the activator new my-project-name , and then I selected the play-java template and the project was created without errors.
Then I import the project into my IDE, IntelliJ, as an SBT project. When a project is imported, a pop-up message is displayed: SBT compilation for play framework 2.x disabled by default .
In the IntelliJ project panel, it does not display all files (mainly files with code). Only a few of them.

The build.sbt file looks like a complete compilation error (almost all lines are underlined in red).
Here is the build.sbt file
name := """my-project-name""" version := "1.0-SNAPSHOT" lazy val root = (project in file(".")).enablePlugins(PlayJava) scalaVersion := "2.11.6" libraryDependencies ++= Seq( javaJdbc, cache, javaWs ) // Play provides two styles of routers, one expects its actions to be injected, the // other, legacy style, accesses its actions statically. routesGenerator := InjectedRoutesGenerator fork in run := true
I can compile and run code with activator ui without errors. So why is IntelliJ not fully importing the project, and it shows me the message SBT compilation for play framework 2.x disabled by default ?
I googled around and could not find any hint related to this, so I lost a little here.
EDIT: -------------------------------------
I closed the project on IntelliJ and deleted the project folder. Closed IntelliJ and using activator , I created the same project again. Using activator ui , I compiled the project. Then I activated IntelliJ, and I was asked to either open the project, create a new one or import the project.
The selected project import and the normal βimport of project stepsβ, and IntelliJ imported the project without any problems. But , if I try to import a project, and with an open project in IntelliJ, I get the same problem that makes me ask this question. Maybe this is a bug in IntelliJ?
EDIT 2 ------------------------------------------
The solution to these two problems ("SBT build for the 2.x playback environment is disabled by default" and files not displayed on IntelliJ) can be fixed with the answers user3384225 and DarkShadow .