Samples of game graphics were not built

On Macos Maverics, I have the following problem:

I cloned the Playframework repository and wanted to create samples. Unfortunately this will not work. I have playframework in my way, play-2.2.3.

I tried to import it from Intellij IDEA, but with the same error.

localhost: helloworld radimpavlicek $ play 
[info] Loading project definition from / Users / radimpavlicek / Documents / playframework / samples / scala / helloworld / project
/Users/radimpavlicek/Documents/playframework/samples/scala/helloworld/build.sbt►: error: not found: value PlayScala
lazy val root = (project in file (".")). enablePlugins (PlayScala)
                               `` ^
[error] sbt.compiler.EvalException: Type error in expression
[error] Use 'last' for the full log.
Project loading failed: (r) etry, (q) uit, (l) ast, or (i) gnore? 
+4
source share
3 answers

I had the same problem in Ubuntu 14.04 trying to create a zentask example application. I deleted the offensive line in build.sbt and added it play.Project.playScalaSettingsto the end and was able to compile and run from the Play console. This is my current zentask build.sbt (need empty lines):

name := "zentask"

version := "1.0"

libraryDependencies ++= Seq(jdbc, anorm)

scalaVersion := Option(System.getProperty("scala.version")).getOrElse("2.10.4")

play.Project.playScalaSettings
+3
source

2.2.x 2.3.x, build.sbt 2.3. helloworld Github, , 2.2.x Play 2.3.0-RC1 ( ). 2.2, build.sbt helloworld :

import play.Project._

name := "helloworld"

version := "1.0"

playScalaSettings
+2

enablePlugins sbt.Project sbt 0.13.5.

sbt, http://www.scala-sbt.org/download.html / ( )

0

Source: https://habr.com/ru/post/1539803/


All Articles