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
libraryDependencies ++= Seq( | |
"org.specs2" %% "specs2" % "1.8.2" % "test", | |
"junit" % "junit" % "4.7" % "test" | |
) |
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
import org.junit.runner.RunWith | |
import org.specs2.mutable.Specification | |
import org.specs2.runner.JUnitRunner | |
@RunWith(classOf[JUnitRunner]) |
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
val aOpt: Option[Int] = Some(1) | |
val c = for { | |
a <- aOpt.toRight("Missing something in first level!").right | |
b <- Option(2).toRight("Another failure!").right | |
} yield { | |
a + b | |
} |
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
import sbt._ | |
import Keys._ | |
import play.Project._ | |
object ApplicationBuild extends Build { | |
val appName = "javatest" | |
val appVersion = "1.0-SNAPSHOT" | |
val appDependencies = Seq( |
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
import sbt._ | |
import Keys._ | |
import play.Project._ | |
object ApplicationBuild extends Build { | |
val appName = "javatest" | |
val appVersion = "1.0-SNAPSHOT" | |
val appDependencies = Seq( |
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
import sbt._ | |
import Keys._ | |
object VersionInfoPlugin extends Plugin { | |
val versionInfoPackage = SettingKey[String]("version-info-package") | |
val versionInfoClassTask = TaskKey[Seq[java.io.File]]("version-info-class", "writes a java class VersionInfo with information about the versionInfo to sourceManaged") | |
val versionInfo = TaskKey[String]("version-info", "the current versionInfo") | |
private val Classname = "VersionInfo" |
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
import sbt._ | |
import sbt.Keys._ | |
/** needed only till adept is released */ | |
object PlayPlugins extends Build { | |
val adeptProjectPath = "TODO" | |
lazy val adeptSbt = ProjectRef(file(), "adept-sbt") //TODO: remove this file | |
lazy val root = Project(id = "play-adept-project", | |
base = file("."), |
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
val A10s210 = { | |
Variant("A", | |
attributes = Set( | |
Attribute("version", Set("1.0")), | |
Attribute("scala-binary-version", Set("2.10"))), | |
artifacts = Set( | |
Artifact("a10s210", Set(Configuration("compile")))), | |
configurations = Map( | |
Configuration("compile") -> Set( |
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
Akka Team Blog: | |
http://letitcrash.com/ | |
Shutdown Patterns in Akka 2: | |
http://letitcrash.com/post/30165507578/shutdown-patterns-in-akka-2 | |
An Akka 2 Terminator: | |
http://letitcrash.com/post/29773618510/an-akka-2-terminator |
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
import sbt._ | |
import sbt.Keys._ | |
import play.Keys._ | |
import play.PlayExceptions._ | |
import play.PlaySourceGenerators | |
object EmscriptenKeys { | |
val eccFiles = taskKey[PathFinder]("C/C++ files to be compiled") | |
val eccCompiler = settingKey[String]("Path to Emscripten compiler") | |
} |