Skip to content

Instantly share code, notes, and snippets.

@laughingman7743
Created August 23, 2015 07:53
Show Gist options
  • Save laughingman7743/7e615bc4dfe03feb6954 to your computer and use it in GitHub Desktop.
Save laughingman7743/7e615bc4dfe03feb6954 to your computer and use it in GitHub Desktop.
name := """play24-add-universal"""
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.11.6"
libraryDependencies ++= Seq(
jdbc,
cache,
ws,
specs2 % Test
)
resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"
// Play provides two styles of routers, one expects its actions to be injected, the
// other, legacy style, accesses its actions statically.
routesGenerator := InjectedRoutesGenerator
mappings in Universal ++= {
(baseDirectory.value / "foo" ** "*").get pair relativeTo(baseDirectory.value)
}
mappings in Universal ++= {
(baseDirectory.value / "hoge" ** "*").get pair relativeTo(baseDirectory.value)
}
.
├── LICENSE
├── README
├── activator
├── activator-launch-1.3.5.jar
├── app
│   ├── controllers
│   │   └── Application.scala
│   └── views
│   ├── index.scala.html
│   └── main.scala.html
├── build.sbt
├── conf
│   ├── application.conf
│   ├── logback.xml
│   └── routes
├── foo
│   └── bar
│   ├── bar.txt
│   └── foo.txt
├── hoge
│   └── fuga.sh
├── project
│   ├── build.properties
│   └── plugins.sbt
├── public
│   ├── images
│   │   └── favicon.png
│   ├── javascripts
│   │   └── hello.js
│   └── stylesheets
│   └── main.css
└── test
├── ApplicationSpec.scala
└── IntegrationSpec.scala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment