-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
65 lines (58 loc) · 2.31 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
ThisBuild / tlBaseVersion := "0.23"
ThisBuild / developers := List(
tlGitHubDev("rossabaker", "Ross A. Baker")
)
ThisBuild / startYear := Some(2014)
val Scala212 = "2.12.20"
val Scala213 = "2.13.15"
ThisBuild / crossScalaVersions := Seq(Scala212, Scala213, "3.3.4")
ThisBuild / scalaVersion := Scala213
lazy val root = project.in(file(".")).aggregate(scalaXml2, scalaXml1).enablePlugins(NoPublishPlugin)
val http4sVersion = "0.23.29"
val scalacheckXmlVersion = "0.1.0"
val scalaXml1Version = "1.3.1"
val scalaXml2Version = "2.3.0"
val munitVersion = "1.0.0"
val munitCatsEffectVersion = "2.0.0"
lazy val scalaXml2 = project
.in(file("scala-xml-2"))
.settings(
name := "http4s-scala-xml",
description := "Provides scala-xml codecs for http4s",
tlMimaPreviousVersions ++= (0 to 11).map(y => s"0.23.$y").toSet,
libraryDependencies += "org.scala-lang.modules" %%% "scala-xml" % scalaXml2Version,
commonSettings,
)
lazy val scalaXml1 = project
.in(file("scala-xml-1"))
.settings(
name := "http4s-scala-xml-1",
description := "Provides scala-xml codecs for http4s",
tlMimaPreviousVersions ++= Set("0.23.0"),
crossScalaVersions := Seq(Scala212, Scala213),
libraryDependencies += "org.scala-lang.modules" %%% "scala-xml" % scalaXml1Version,
dependencyOverrides += "org.scala-lang.modules" %%% "scala-xml" % scalaXml1Version,
commonSettings,
)
lazy val commonSettings = Seq(
Compile / unmanagedSourceDirectories += (LocalRootProject / baseDirectory).value / "scala-xml" / "src" / "main" / "scala",
Test / unmanagedSourceDirectories += (LocalRootProject / baseDirectory).value / "scala-xml" / "src" / "test" / "scala",
libraryDependencies ++= Seq(
"org.http4s" %%% "http4s-core" % http4sVersion,
"org.http4s" %%% "http4s-laws" % http4sVersion % Test,
"org.scalameta" %%% "munit-scalacheck" % munitVersion % Test,
"org.typelevel" %%% "munit-cats-effect" % munitCatsEffectVersion % Test,
"org.typelevel" %%% "scalacheck-xml" % scalacheckXmlVersion % Test,
),
)
lazy val docs = project
.in(file("site"))
.dependsOn(scalaXml2)
.settings(
libraryDependencies ++= Seq(
"org.http4s" %%% "http4s-dsl" % http4sVersion,
"org.http4s" %%% "http4s-circe" % http4sVersion,
"io.circe" %%% "circe-generic" % "0.14.1",
)
)
.enablePlugins(Http4sOrgSitePlugin)