Build error in game infrastructure
I'm new to building a framework and just trying to get a basic java-play (hello-play-java) application running. But whenever I try to build it, it gives this error: -
error: object Project is not a member of package play
import play.Project._
^
Type error in expression
Failed to load project.`
My build.sbt file looks like this: -
import play.Project._
name := """hello-play-java"""
version := "1.0-SNAPSHOT"
libraryDependencies ++= Seq(
"org.webjars" %% "webjars-play" % "2.2.2",
"org.webjars" % "bootstrap" % "2.3.1")
playJavaSettings
fork in run := true
I tried looking for it but didn't find much help.
+3
source to share
1 answer
If you are using Play 2.3 you do not need this import. This should work:
name := """hello-play-java"""
version := "1.0-SNAPSHOT"
libraryDependencies ++= Seq(
"org.webjars" %% "webjars-play" % "2.2.2",
"org.webjars" % "bootstrap" % "2.3.1")
fork in run := true
You can see an example here.
+3
source to share