Skip to content

Commit 32bf201

Browse files
committed
Initial commit. Adding necessary dependencies.
1 parent b48c00d commit 32bf201

File tree

5 files changed

+74
-0
lines changed

5 files changed

+74
-0
lines changed

build.sbt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import Dependencies._
2+
3+
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
4+
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.3")
5+
6+
val simulacrum = Seq("com.github.mpilquist" %% "simulacrum" % "0.10.0")
7+
8+
lazy val root = (project in file(".")).
9+
settings(
10+
inThisBuild(List(
11+
organization := "de.sugdus",
12+
scalaVersion := "2.11.8",
13+
version := "0.1.0-SNAPSHOT"
14+
)),
15+
name := "intermediate",
16+
libraryDependencies ++= all ++ allTest ++ simulacrum
17+
)
18+

project/Dependencies.scala

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import sbt._
2+
3+
object Dependencies {
4+
5+
val monocleVersion = "1.4.0"
6+
val circeVersion = "0.7.0"
7+
val catsVersion = "0.9.0"
8+
9+
val cats = Seq("org.typelevel" %% "cats" % catsVersion)
10+
11+
val circe = Seq(
12+
"io.circe" %% "circe-core" % circeVersion,
13+
"io.circe" %% "circe-generic" % circeVersion,
14+
"io.circe" %% "circe-parser" % circeVersion
15+
)
16+
17+
val shapeless = Seq("com.chuusai" %% "shapeless" % "2.3.2")
18+
19+
val monocle = Seq(
20+
"com.github.julien-truffaut" %% "monocle-core" % monocleVersion,
21+
"com.github.julien-truffaut" %% "monocle-macro" % monocleVersion,
22+
"com.github.julien-truffaut" %% "monocle-law" % monocleVersion % "test"
23+
)
24+
25+
26+
val all: Seq[ModuleID] = cats ++ circe ++ shapeless ++ monocle
27+
28+
val specs2 = Seq("org.specs2" %% "specs2-core" % "3.8.7" % "test")
29+
val scalaCheck = Seq("org.scalacheck" %% "scalacheck" % "1.13.4" % "test")
30+
31+
val allTest: Seq[ModuleID] = specs2 ++ scalaCheck
32+
}

project/build.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sbt.version=0.13.13

src/main/scala/example/Hello.scala

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package example
2+
3+
object Hello extends Greeting with App {
4+
println(greeting)
5+
}
6+
7+
trait Greeting {
8+
9+
type HelloTypeLambda = Either[?, Double]
10+
11+
lazy val greeting: String = "hello"
12+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package example
2+
3+
import org.specs2.mutable.Spec
4+
5+
class HelloSpec extends Spec {
6+
"The Hello object" should {
7+
"say hello" in {
8+
Hello.greeting must be_==("hello")
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)