forked from jdegoes/functional-design
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
88 lines (77 loc) · 2.59 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import sbt._
lazy val functionalDesign = (project in file(".")).
settings (
name := "Functional Design",
organization := "net.degoes",
version := "0.1-SNAPSHOT",
scalaVersion := "2.12.10"
// add other settings here
)
/* scala versions and options */
scalaVersion := "2.12.10"
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.6")
// These options will be used for *all* versions.
scalacOptions ++= Seq(
"-deprecation"
, "-unchecked"
, "-encoding", "UTF-8"
, "-Xlint"
, "-Xverify"
, "-feature"
,"-Ypartial-unification"
//,"-Xfatal-warnings" // Recommend enable before you commit code
, "-language:_"
//,"-optimise"
)
javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation", "-source", "1.7", "-target", "1.7")
// javaOptions in Universal ++= Seq(
// "-J-server",
// "-J-Xms1g -Xmx4g",
// "-J-XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled",
// "-J-XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=68",
// "-J-XX:+ScavengeBeforeFullGC -XX:+CMSScavengeBeforeRemark",
// "-J-XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M"
// )
val CatsVersion = "2.1.0"
val CatsEffectVersion = "2.1.1"
val MonixVersion = "3.1.0"
val ZIOVersion = "1.0.0-RC18-2"
val ShapelessVersion = "2.3.3"
val FS2Version = "2.2.2"
val AmmoniteVersion = "2.0.0"
libraryDependencies ++= Seq(
"com.typesafe" % "config" % "1.3.1",
// -- testing --
"org.scalacheck" %% "scalacheck" % "1.13.4" % "test",
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
// -- Logging --
"ch.qos.logback" % "logback-classic" % "1.1.3",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.0",
// Cats
"org.typelevel" %% "cats-core" % CatsVersion,
"org.typelevel" %% "cats-effect" % CatsEffectVersion,
// fs2
"co.fs2" %% "fs2-core" % FS2Version,
// monix
"io.monix" %% "monix" % MonixVersion,
// shapeless
"com.chuusai" %% "shapeless" % ShapelessVersion,
// scalaz
"dev.zio" %% "zio" % ZIOVersion,
"dev.zio" %% "zio-streams" % ZIOVersion,
// type classes
"com.github.mpilquist" %% "simulacrum" % "0.12.0",
// li haoyi ammonite repl embed
"com.lihaoyi" % "ammonite" % AmmoniteVersion % "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