Created
December 19, 2017 23:27
-
-
Save sumew/ebb9316561aae1ddeee2ee0ad3bbdedf 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
#!/usr/bin/env bash | |
# | |
set -e | |
pushd "$(mktemp -dt akka)" | |
cat >build.sbt <<EOM | |
scalaVersion := "2.11.6" | |
val akkaVersion = "2.5.6" | |
val akkaHTTPVersion = "10.0.9" | |
libraryDependencies ++= Seq( | |
"com.typesafe.akka" %% "akka-http" % "10.0.11", | |
"com.typesafe.akka" %% "akka-stream" % "2.5.7", | |
"com.typesafe.akka" %% "akka-actor" % "2.5.7" | |
) | |
logLevel := Level.Debug | |
lazy val root = project in file(".") | |
initialCommands := | |
""" | |
|import akka.actor.ActorSystem | |
|import akka.http.scaladsl.Http | |
|import akka.http.scaladsl.model._ | |
|import akka.http.scaladsl.server.Directives._ | |
|import akka.stream.ActorMaterializer | |
|import scala.io.StdIn | |
""".stripMargin | |
EOM | |
sbt console | |
popd | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment