Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lazy val server = (project in file("server"))
- .settings(
- name := "server",
- version := Settings.version,
- scalaVersion := Settings.versions.scala,
- scalacOptions ++= Settings.scalacOptions,
- libraryDependencies ++= Settings.jvmDependencies.value,
- commands += ReleaseCmd,
- compile in Compile := ((compile in Compile) dependsOn
- scalaJSPipeline).value,
- scalaJSProjects := clients,
- pipelineStages in Assets := Seq(scalaJSPipeline),
- pipelineStages := Seq(digest, gzip),
- LessKeys.compress in Assets := true
- )
- .enablePlugins(PlayScala)
- .disablePlugins(PlayLayoutPlugin)
- .aggregate(clients.map(projectToRef): _*)
- .dependsOn(sharedJVM)
- lazy val ReleaseCmd = Command.command("release") {
- state => "set elideOptions in client := Seq("-Xelide-below",
- "WARNING")" ::
- "client/clean" ::
- "client/test" ::
- "server/clean" ::
- "server/test" ::
- "server/dist" ::
- "set elideOptions in client := Seq()" ::
- state
- }
- ...
- ...
- package controllers
- import java.nio.ByteBuffer
- import boopickle.Default._
- import com.google.inject.Inject
- import play.api.{Configuration, Environment}
- import play.api.mvc._
- import services.ApiService
- import spatutorial.shared.Api
- class Application @Inject() (implicit val config: Configuration, env:
- Environment) extends Controller {
- val apiService = new ApiService()
- def index = Action {
- Ok(views.html.index("lain"))
- }
- ...
- object inject is not a member of package com.google
- package controllers
- import java.nio.ByteBuffer
- import boopickle.Default._
- import com.google.inject.Inject
- import play.api.{Configuration, Environment}
- import play.api.mvc._
- import services.ApiService
- import spatutorial.shared.Api
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement