Skip to content

Instantly share code, notes, and snippets.

@sumew
Created December 19, 2017 23:27
Show Gist options
  • Save sumew/ebb9316561aae1ddeee2ee0ad3bbdedf to your computer and use it in GitHub Desktop.
Save sumew/ebb9316561aae1ddeee2ee0ad3bbdedf to your computer and use it in GitHub Desktop.
#!/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