Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. lazy val server = (project in file("server"))
  2. .settings(
  3. name := "server",
  4. version := Settings.version,
  5. scalaVersion := Settings.versions.scala,
  6. scalacOptions ++= Settings.scalacOptions,
  7. libraryDependencies ++= Settings.jvmDependencies.value,
  8. commands += ReleaseCmd,
  9. compile in Compile := ((compile in Compile) dependsOn
  10. scalaJSPipeline).value,
  11. scalaJSProjects := clients,
  12. pipelineStages in Assets := Seq(scalaJSPipeline),
  13. pipelineStages := Seq(digest, gzip),
  14. LessKeys.compress in Assets := true
  15. )
  16. .enablePlugins(PlayScala)
  17. .disablePlugins(PlayLayoutPlugin)
  18. .aggregate(clients.map(projectToRef): _*)
  19. .dependsOn(sharedJVM)
  20.  
  21. lazy val ReleaseCmd = Command.command("release") {
  22. state => "set elideOptions in client := Seq("-Xelide-below",
  23. "WARNING")" ::
  24. "client/clean" ::
  25. "client/test" ::
  26. "server/clean" ::
  27. "server/test" ::
  28. "server/dist" ::
  29. "set elideOptions in client := Seq()" ::
  30. state
  31. }
  32. ...
  33.  
  34. ...
  35. package controllers
  36.  
  37. import java.nio.ByteBuffer
  38. import boopickle.Default._
  39. import com.google.inject.Inject
  40. import play.api.{Configuration, Environment}
  41. import play.api.mvc._
  42. import services.ApiService
  43. import spatutorial.shared.Api
  44.  
  45.  
  46. class Application @Inject() (implicit val config: Configuration, env:
  47. Environment) extends Controller {
  48. val apiService = new ApiService()
  49.  
  50. def index = Action {
  51. Ok(views.html.index("lain"))
  52. }
  53. ...
  54.  
  55. object inject is not a member of package com.google
  56.  
  57. package controllers
  58.  
  59. import java.nio.ByteBuffer
  60. import boopickle.Default._
  61. import com.google.inject.Inject
  62. import play.api.{Configuration, Environment}
  63. import play.api.mvc._
  64. import services.ApiService
  65. import spatutorial.shared.Api
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement