forked from mandubian/scala-xmlsoap-ersatz
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
81 lines (77 loc) · 2.82 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
79
80
81
import com.typesafe.tools.mima.core.NewMixinForwarderProblem
import com.typesafe.tools.mima.core.ProblemFilters.exclude
lazy val `scala-soap` = projectMatrix
.jvmPlatform(Seq(scala212, scala213))
.settings(
libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-xml" % "1.3.0",
"org.slf4j" % "slf4j-api" % "1.7.32",
"ch.qos.logback" % "logback-classic" % "1.2.6" % Test
) ++ specs2("-core").value,
// Adds a `src/main/scala-2.13+` source directory for Scala 2.13 and newer
// and a `src/main/scala-2.13-` source directory for Scala version older than 2.13
Compile / unmanagedSourceDirectories += {
val sourceDir = (Compile / sourceDirectory).value
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, n)) if n >= 13 => sourceDir / "scala-2.13+"
case _ => sourceDir / "scala-2.13-"
}
},
versionPolicyPreviousVersions := (scalaBinaryVersion.value match {
case "2.12" => Seq("1.8.0")
case _ => Seq("1.9.0")
}),
mimaBinaryIssueFilters ++= Seq( // format: off
// we make SpecialReaders extends IterableReader
exclude[NewMixinForwarderProblem]("com.sandinh.xml.SpecialReaders.traversableReader"),
), // format: on
libraryDependencySchemes ++= Seq(
"org.scala-lang.modules" %% "scala-xml" % "semver-spec",
),
)
lazy val `play-soap` = projectMatrix
.playAxis(play26, Seq(scala212))
.playAxis(play28, Seq(scala212, scala213))
.dependsOn(`scala-soap`)
.settings(
libraryDependencies ++= play("ahc-ws", "specs2" -> Test).value,
addOpensForTest(),
mimaPreviousArtifacts := (playAxis.value match {
case `play26` => Set("com.sandinh" %% "play-soap" % "1.8.0")
case _ => Set.empty // TODO mimaPreviousArtifacts.value
}),
libraryDependencySchemes ++= Seq(
"com.google.guava" % "guava" % "always", // change from 22.0 to 23.6.1-jre
"com.typesafe" %% "ssl-config-core" % "always", // change from 0.2.2 to 0.3.8
"org.scala-lang.modules" %% "scala-xml" % "semver-spec",
"org.scala-lang.modules" %% "scala-parser-combinators" % "semver-spec",
),
)
lazy val `scala-soap-root` = (project in file("."))
.aggregate(`scala-soap`.projectRefs ++ `play-soap`.projectRefs: _*)
.settings(skipPublish)
inThisBuild(
Seq(
versionScheme := Some("semver-spec"),
developers := List(
Developer(
"thanhbv",
"Bui Viet Thanh",
url("https://sandinh.com")
),
Developer(
"pawelprazak",
"Paweł Prażak",
url("https://github.com/pawelprazak")
),
Developer(
"mandubian",
"Pascal Voitot",
url("http://www.mandubian.com")
),
),
)
)