Closed diwa-zz closed 9 years ago
+1 scala 2.11 support is the only thing preventing me from using this great plugin
We have just enabled Scala 2.11 support in Snapshot build 0.7.1-SNAPSHOT. Checkout the instructions to use the snapshot. So this will be available in the next build.
after trying to use snapshots repo as in instructions, is still looking in http://repo.typesafe.com/typesafe/releases/com/tuplejump/play-yeoman_2.11/0.7.1-SNAPSHOT/play-yeoman_2.11-0.7.1-SNAPSHOT.pom
and not finding it. Is it any special repository needed?
Hey @wingtsun, it is working for me – did you add the snapshot repository via resolvers += Resolver.sonatypeRepo("snapshots")
to plugins.sbt
as well as to project/Build.scala
or build.sbt
?
@wingtsun: following the solution:
build.sbt
import com.tuplejump.sbt.yeoman.Yeoman import play.PlayScala
name := "sample-app"
version := "0.1"
scalaVersion := "2.11.2"
resolvers += Resolver.sonatypeRepo("snapshots")
libraryDependencies ++= Seq(... your dependencies ...)
lazy val root = (project in file(".")).enablePlugins(PlayScala)
//**** // Yeoman settings //**** Yeoman.yeomanSettings
plugins.sbt
logLevel := Level.Warn
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += Resolver.sonatypeRepo("snapshots")
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.4")
addSbtPlugin("com.tuplejump" % "sbt-yeoman" % "0.7.1-SNAPSHOT")
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.7.0-SNAPSHOT")
addSbtPlugin("com.typesafe.sbt" % "sbt-web" % "1.0.0")
many thanks for answers.
however when I'm running "sbt run" I'm getting 404 in browser like below: [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (http://localhost:9000/ui/bower_components/bootstrap/dist/css/bootstrap.css)
@wingtsun Have you checked if the file bootstrap.css
is located at projectHome/ui/bower_components/bootstrap/dist/css/bootstrap.css
?
To check if your UI works as expected but there is an issue with the plugin, you could try running just the UI using grunt serve.
projectHome$ cd ui
ui$ grunt serve
grunt serve
still serves the files correctly, but when I run with play, none of the bower_components and fonts where loaded.
@nlhkh check the property yeoman.devDirs
. The default is ["ui/app","ui/.tmp"]. If bower_components is not present in one of these, you will need to update the setting in your project's build file.
Please refer #58
Closing this issue as a version for Scala 2.11 has been published.
Can you publish play-yeoman for scala 2.11 ? Our new play 2.3 applications are based on scala 2.11.1
Thanks.