-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
42 lines (36 loc) · 1.41 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
scalaVersion := "2.11.8"
lazy val commonSettings = Seq(
version := "0.1.0",
scalaVersion := "2.11.8",
organization := "ch.inventsoft",
scalacOptions += "-feature",
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.8.1"),
baseUrl in versioneye := "https://www.versioneye.com",
apiPath in versioneye := "/api/v2",
publishCrossVersion in versioneye := true
)
lazy val core = project.in(file("core")).
settings(commonSettings: _*).
settings(
name := "free-to-compose",
libraryDependencies += "org.typelevel" %% "cats" % "0.7.2",
libraryDependencies += "com.chuusai" %% "shapeless" % "2.3.2",
propertiesPath in versioneye := ".versioneye.properties"
)
.enablePlugins(VersionEyePlugin)
lazy val example = project.in(file("example")).
dependsOn(core).
settings(commonSettings: _*).
settings(
name := "free-to-compose-example"
)
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
import scalariform.formatter.preferences._
import com.typesafe.sbt.SbtScalariform
SbtScalariform.defaultScalariformSettings
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(MultilineScaladocCommentsStartOnFirstLine, true)
.setPreference(RewriteArrowSymbols, true)
.setPreference(PreserveDanglingCloseParenthesis, true)