|
Play Framework/Scala example source code file (build.sbt)
The build.sbt Play Framework example source codelazy val root = (project in file(".")).enablePlugins(PlayScala) scalaVersion := sys.props.get("scala.version").getOrElse("2.10.4") // can't use test directory since scripted calls its script "test" sourceDirectory in Test := baseDirectory.value / "tests" scalaSource in Test := baseDirectory.value / "tests" // Generate a js router so we can test it with mocha val generateJsRouter = TaskKey[Seq[File]]("generate-js-router") generateJsRouter := { (runMain in Compile).toTask(" utils.JavaScriptRouterGenerator target/web/jsrouter/jsRoutes.js").value Seq(target.value / "web" / "jsrouter" / "jsRoutes.js") } resourceGenerators in TestAssets <+= generateJsRouter managedResourceDirectories in TestAssets += target.value / "web" / "jsrouter" Other Play Framework source code examplesHere is a short list of links related to this Play Framework build.sbt source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.