Skip to content

Instantly share code, notes, and snippets.

View erip's full-sized avatar

Elijah Rippeth erip

  • Fairfax, VA
View GitHub Profile
@erip
erip / Example.scala
Created January 2, 2018 14:10
`withClient` example
import com.lightbend.lagom.scaladsl.testkit.ServiceTest._
private def withDefaultClient(testCode: (MyService) => Any): Unit = {
withServer(ServiceTest.defaultSetup) { ctx =>
new MyApplication(ctx) with LocalServiceLocator {
// whatever your Application Cake should look like...
}
} { server =>
// Client for your service
val client = server.serviceClient.implement[MyService]
@erip
erip / build.sbt
Last active December 22, 2017 13:25
My attempt to shade guava with coursier
import sbt.Keys._
lazy val commonSettings = Seq(
name := "shading-issue",
version := "0.1",
scalaVersion in ThisBuild := "2.11.8"
)
lazy val `dummy` = (project in file("."))
.settings(commonSettings: _*)