forked from julienrf/play-json-derived-codecs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
70 lines (60 loc) · 2.24 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
import com.typesafe.tools.mima.core.{IncompatibleSignatureProblem, ProblemFilters}
import sbtcrossproject.CrossPlugin.autoImport.{CrossType, crossProject}
ThisBuild / organization := "org.julienrf"
ThisBuild / scalaVersion := "2.13.3"
ThisBuild / crossScalaVersions := Seq(scalaVersion.value, "2.12.8")
ThisBuild / versionPolicyIntention := Compatibility.BinaryAndSourceCompatible
ThisBuild / mimaBinaryIssueFilters ++= Seq(
// package private method
ProblemFilters.exclude[IncompatibleSignatureProblem]("julienrf.json.derived.DerivedOWritesUtil.makeCoProductOWrites")
)
ThisBuild / developers := List(
Developer(
"julienrf",
"Julien Richard-Foy",
url("http://julien.richard-foy.fr")
)
)
ThisBuild / homepage := Some(url(s"https://github.com/julienrf/play-json-derived-codecs"))
ThisBuild / licenses := Seq("MIT License" -> url("http://opensource.org/licenses/mit-license.php"))
ThisBuild / scmInfo := Some(
ScmInfo(
url(s"https://github.com/julienrf/play-json-derived-codecs"),
s"scm:git:[email protected]:julienrf/play-json-derived-codecs.git"
)
)
val library =
crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.settings(
name := "play-json-derived-codecs",
libraryDependencies ++= Seq(
"com.chuusai" %%% "shapeless" % "2.3.3",
"org.scalatest" %%% "scalatest" % "3.2.3" % Test,
"org.scalacheck" %%% "scalacheck" % "1.15.2" % Test,
"org.scalatestplus" %%% "scalacheck-1-15" % "3.2.3.0" % Test,
"com.typesafe.play" %%% "play-json" % "2.9.2"
),
scalacOptions ++= {
Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-unchecked",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xlint"
) ++
(CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, n)) if n >= 13 => Seq("-Xsource:3")
case _ => Seq("-Yno-adapted-args", "-Ywarn-unused-import", "-Xfuture")
})
},
Test / scalacOptions += "-Yrangepos"
)
val libraryJVM = library.jvm
val libraryJS = library.js
val `play-json-derived-codecs` =
project.in(file(".")).aggregate(libraryJVM, libraryJS)