-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
75 lines (67 loc) · 2.37 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
addCompilerPlugin("org.scalamacros" % "paradise_2.12.4" % "2.1.0")
autoCompilerPlugins := true
addCompilerPlugin("com.lihaoyi" %% "acyclic" % "0.1.7")
val testLibraries = List(
"org.scalacheck" %% "scalacheck" % "1.13.5" % "test",
"org.typelevel" %% "discipline" % "0.8" % "test",
"org.scalatest" %% "scalatest" % "3.0.4" % "test")
val catsLibraries = List(
"org.typelevel" %% "cats-core" % "1.0.0-MF")
lazy val commonSettings = List(
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.4"),
organization := "com.alexknvl",
version := "0.13.0-SNAPSHOT",
scalaVersion := "2.12.4-bin-typelevel-4",
scalaOrganization := "org.typelevel",
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
scalacOptions ++= List(
"-deprecation",
"-encoding", "UTF-8",
"-explaintypes",
"-Yrangepos",
"-feature",
"-Xfuture",
"-Yliteral-types",
"-Ypartial-unification",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-language:experimental.macros",
"-unchecked",
"-Yno-adapted-args",
"-opt-warnings",
"-Xlint:_,-type-parameter-shadow",
"-Xsource:2.13",
"-Ywarn-dead-code",
"-Ywarn-extra-implicit",
"-Ywarn-inaccessible",
"-Ywarn-infer-any",
"-Ywarn-nullary-override",
"-Ywarn-nullary-unit",
"-Ywarn-numeric-widen",
"-Ywarn-unused:_,-imports",
"-Ywarn-value-discard",
"-opt:l:inline",
"-opt-inline-from:<source>"),
resolvers ++= List(
Resolver.sonatypeRepo("snapshots"),
Resolver.sonatypeRepo("releases")),
libraryDependencies ++= testLibraries
// wartremoverErrors ++= List(Wart.AsInstanceOf)
)
val macroCompatVersion = "1.1.1"
val macroParadiseVersion = "2.1.0"
lazy val leibnizMacros = (project in file("./macros/"))
.settings(name := "leibniz-macros")
.settings(commonSettings: _*)
.settings(libraryDependencies ++= Seq(
scalaOrganization.value % "scala-compiler" % scalaVersion.value,
"org.typelevel" %% "macro-compat" % macroCompatVersion))
lazy val root = (project in file("."))
.settings(name := "leibniz")
.settings(commonSettings: _*)
// .settings(libraryDependencies ++= catsLibraries)
.settings(libraryDependencies ++= Seq(
scalaOrganization.value % "scala-compiler" % scalaVersion.value,
"org.typelevel" %% "macro-compat" % macroCompatVersion))
.dependsOn(leibnizMacros)