How to get sbt-web working in Build.scala?

I have a rather complicated project - it uses Play, Scala.js and various other toys. It is currently built in Build.scala because I have not yet been able to get all the parts working in build.sbt. (I talked about this separately on the sbt mailing list.)

Now I would like to take advantage of the Play new fingerprinting, which means the beginning of the game with sbt-web. I am obviously doing something wrong. I added regular connection plugins to my .sbt plugins:

addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.1")

addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.0.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-gzip" % "1.0.0")

But when I tried to add SbtWeb on the JVM side of my project:

lazy val scalajvm = Project(
  id = "scalajvm",
  base = file("scalajvm")
) enablePlugins (play.PlayScala, SbtWeb) settings (scalajvmSettings: _*) aggregate (scalajs)

sbt complained that he did not know SbtWeb and did not download. It’s strange. I added an explicit import:

import com.typesafe.sbt.web.SbtWeb

This allowed the download. Then I tried to start the pipeline itself:

pipelineStages := Seq(digest, gzip),

, . , , , - :

import com.typesafe.sbt.web.Import.pipelineStages

: , , , .sbt.

? , - , , . , , , , build.sbt. (, sbt 0.13.5, build.properties, Play 2.3.5 plugins.sbt.)

+4
2

sbt-web Build.scala . :

 import com.typesafe.sbt.digest.Import._
 import com.typesafe.sbt.gzip.Import._
 import com.typesafe.sbt.rjs.Import._
 import com.typesafe.sbt.web.Import._

( TaskKey[Pipeline.Stage]) Import . , . , , , . , sbt.

0

digest , AutoPlugin. :

import com.typesafe.sbt.digest.Import.digest
0

All Articles