Skip to content

Instantly share code, notes, and snippets.

@brikis98
Last active August 29, 2015 13:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save brikis98/9084325 to your computer and use it in GitHub Desktop.
// Note the "with play.PlayInternalKeys"
object ApplicationBuild extends Build with play.PlayInternalKeys {
// Project with NettyServer monkey patch
val monkeyPatch = Project("monkey-patch", file("monkey-patch"))
.settings(libraryDependencies +=
"com.typesafe.play" % "play_2.10" % "2.2.1")
// Actual Play app
val myApp = play.Project("my-app", path = file("my-app"))
.dependsOn(monkeyPatch)
.settings(
// Add to playDependencyClasspath so it is accessible in
// the classloader used for the "run" and "start" commands
playDependencyClasspath +=
(classDirectory in Compile in monkeyPatch).value
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment