Skip to content

Instantly share code, notes, and snippets.

@marcoy
Last active February 21, 2019 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcoy/3a382f6f91bc00232ccad2b2a2288189 to your computer and use it in GitHub Desktop.
Save marcoy/3a382f6f91bc00232ccad2b2a2288189 to your computer and use it in GitHub Desktop.
// Use this with `amm -p Troops.sc`
interp.repositories() ++= List(
coursier.Cache.ivy2Cache
)
@
interp.configureCompiler(_.settings.YpartialUnification.value = true)
interp.configureCompiler(_.settings.feature.value = true)
interp.configureCompiler(_.settings.unchecked.value = true)
interp.configureCompiler(_.settings.language.tryToSet(List("higherKinds", "postfixOps")))
import $ivy.`com.gettroops::core:0.1266.0`
import $ivy.`com.gettroops::web:0.1266.0`
import $ivy.`com.chuusai::shapeless:2.3.3`
import $ivy.`com.github.julien-truffaut::monocle-core:1.5.0-cats`
import $ivy.`com.github.julien-truffaut::monocle-macro:1.5.0-cats`
import $plugin.$ivy.`org.spire-math::kind-projector:0.9.8`
import play.api._
// import com.gettroops.web.TroopsApplicationLoader
import com.gettroops.core.db.slick.Tables
// import com.gettroops.core.db.slick.Tables.profile.api._
// import slick.jdbc.JdbcBackend.DatabaseDef
import scala.concurrent.ExecutionContext.Implicits.global
val env = Environment(new java.io.File("."), this.getClass.getClassLoader, Mode.Dev)
// val context = ApplicationLoader.createContext(env)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment