Created
August 23, 2015 07:53
-
-
Save laughingman7743/7e615bc4dfe03feb6954 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
├── 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