-
Notifications
You must be signed in to change notification settings - Fork 18
/
build.sbt
70 lines (64 loc) · 2.09 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
ThisBuild / tlBaseVersion := "0.5"
ThisBuild / description := "Circe Golden Testing"
ThisBuild / circeRootOfCodeCoverage := None
ThisBuild / startYear := Some(2016)
val scala212 = "2.12.19"
val scala213 = "2.13.14"
val scala3 = "3.3.3"
ThisBuild / scalaVersion := scala213
ThisBuild / crossScalaVersions := Seq(scala212, scala213, scala3)
val circeVersion = "0.14.9"
val scalacheckVersion = "1.18.0"
val disciplineScalatestVersion = "2.3.0"
val scalacheckScalaTestVersion = "3.2.19.0"
val root = tlCrossRootProject.aggregate(golden, example1)
lazy val golden = crossProject(JVMPlatform)
.crossType(CrossType.Pure)
.in(file("golden"))
.settings(
moduleName := "circe-golden",
libraryDependencies ++= Seq(
"org.scalatestplus" %%% "scalacheck-1-18" % scalacheckScalaTestVersion,
"io.circe" %%% "circe-core" % circeVersion,
"io.circe" %%% "circe-parser" % circeVersion,
"io.circe" %%% "circe-testing" % circeVersion,
"io.circe" %%% "circe-generic" % circeVersion % Test,
"org.scalacheck" %% "scalacheck" % scalacheckVersion,
"org.typelevel" %%% "discipline-scalatest" % disciplineScalatestVersion % Test
),
libraryDependencies ++= {
if (tlIsScala3.value) Nil
else
Seq(
scalaOrganization.value % "scala-reflect" % scalaVersion.value % Provided
)
},
Test / classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.Flat,
tlVersionIntroduced := List("2.13", "2.12", "3").map(_ -> "0.5.0").toMap
)
lazy val example1 = crossProject(JVMPlatform)
.crossType(CrossType.Pure)
.in(file("examples/example-1"))
.settings(
libraryDependencies ++= Seq(
"io.circe" %%% "circe-core" % circeVersion,
"org.scalacheck" %% "scalacheck" % scalacheckVersion,
"org.typelevel" %%% "discipline-scalatest" % disciplineScalatestVersion % Test
)
)
.enablePlugins(NoPublishPlugin)
.dependsOn(golden % Test)
ThisBuild / developers := List(
tlGitHubDev(
"travisbrown",
"Travis Brown"
),
tlGitHubDev(
"zarthross",
"Darren Gibson"
),
tlGitHubDev(
"hamnis",
"Erlend Hamnaberg"
)
)