Last active
August 29, 2015 13:56
-
-
Save brikis98/9084454 to your computer and use it in GitHub Desktop.
This file contains 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
// 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, | |
// Replace the "run" and "start" commands with the monkey | |
// patched versions in TempPlayRun | |
run in Compile <<= TempPlayRun.playRunSetting, | |
commands += TempPlayRun.playStartCommand | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment