forked from jdegoes/functional-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
61 lines (52 loc) · 2.01 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import sbt._
lazy val functionalScala = (project in file(".")).
settings (
name := "Functional Scala",
organization := "net.degoes",
version := "0.1-SNAPSHOT",
scalaVersion := "2.12.6",
initialCommands in Compile in console := """
|import scalaz._
|import scalaz.zio._
|import scalaz.zio.console._
|import net.degoes._
|object replRTS extends RTS {}
|import replRTS._
|implicit class RunSyntax[E, A](io: IO[E, A]){ def unsafeRun: A = replRTS.unsafeRun(io) }
""".stripMargin
)
scalaVersion := "2.12.6"
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.6")
scalacOptions ++= Seq(
"-deprecation"
, "-unchecked"
, "-encoding", "UTF-8"
, "-Xlint"
, "-Xverify"
, "-feature"
, "-Ypartial-unification"
, "-Xlint:-unused"
, "-language:_"
)
javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation", "-source", "1.7", "-target", "1.7")
val ScalaZVersion = "7.2.26"
libraryDependencies ++= Seq(
// -- testing --
"org.scalacheck" %% "scalacheck" % "1.13.4" % "test",
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
// Scalaz
"org.scalaz" %% "scalaz-core" % ScalaZVersion,
// Ammonite
"com.lihaoyi" % "ammonite" % "1.1.2" % "test" cross CrossVersion.full
)
resolvers ++= Seq(
"Typesafe Snapshots" at "http://repo.typesafe.com/typesafe/snapshots/",
"Secured Central Repository" at "https://repo1.maven.org/maven2",
Resolver.sonatypeRepo("snapshots")
)
// Ammonite REPL
sourceGenerators in Test += Def.task {
val file = (sourceManaged in Test).value / "amm.scala"
IO.write(file, """object amm extends App { ammonite.Main().run() }""")
Seq(file)
}.taskValue