forked from typelevel/cats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
78 lines (70 loc) · 2.54 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
val V = _root_.scalafix.sbt.BuildInfo
inThisBuild(
List(
scalaVersion in ThisBuild := V.scala212,
addCompilerPlugin(scalafixSemanticdb),
scalacOptions += "-Yrangepos"
))
lazy val rules = project.settings(
libraryDependencies += "ch.epfl.scala" %% "scalafix-core" % V.scalafixVersion
)
lazy val v1_0_0_input = project.in(file("v1_0_0/input"))
.settings(
libraryDependencies ++= Seq(
"org.typelevel" %% "cats" % "0.9.0"
),
scalacOptions += "-language:higherKinds"
)
lazy val v1_0_0_output = project.in(file("v1_0_0/output"))
.settings(
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % "1.0.0",
"org.typelevel" %% "cats-free" % "1.0.0"
),
scalacOptions ++= Seq(
"-language:higherKinds",
"-Ypartial-unification"
)
)
lazy val v1_0_0_tests = project.in(file("v1_0_0/tests"))
.settings(
libraryDependencies += "ch.epfl.scala" % "scalafix-testkit" % V.scalafixVersion % Test cross CrossVersion.full,
compile.in(Compile) :=
compile.in(Compile).dependsOn(compile.in(v1_0_0_input, Compile)).value,
scalafixTestkitOutputSourceDirectories :=
sourceDirectories.in(v1_0_0_output, Compile).value,
scalafixTestkitInputSourceDirectories :=
sourceDirectories.in(v1_0_0_input, Compile).value,
scalafixTestkitInputClasspath :=
fullClasspath.in(v1_0_0_input, Compile).value
)
.dependsOn(v1_0_0_input, rules)
.enablePlugins(ScalafixTestkitPlugin)
lazy val v2_2_0_input = project.in(file("v2_2_0/input"))
.settings(
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % "2.1.0"
),
scalacOptions ++= Seq("-language:higherKinds", "-P:semanticdb:synthetics:on")
)
lazy val v2_2_0_output = project.in(file("v2_2_0/output"))
.settings(
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % "2.2.0-RC4"
),
scalacOptions += "-language:higherKinds"
)
lazy val v2_2_0_tests = project.in(file("v2_2_0/tests"))
.settings(
libraryDependencies += "ch.epfl.scala" % "scalafix-testkit" % V.scalafixVersion % Test cross CrossVersion.full,
compile.in(Compile) :=
compile.in(Compile).dependsOn(compile.in(v2_2_0_input, Compile)).value,
scalafixTestkitOutputSourceDirectories :=
sourceDirectories.in(v2_2_0_output, Compile).value,
scalafixTestkitInputSourceDirectories :=
sourceDirectories.in(v2_2_0_input, Compile).value,
scalafixTestkitInputClasspath :=
fullClasspath.in(v2_2_0_input, Compile).value
)
.dependsOn(v2_2_0_input, rules)
.enablePlugins(ScalafixTestkitPlugin)