forked from scodec/scodec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
46 lines (41 loc) · 1.7 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
import com.typesafe.tools.mima.core._
import com.typesafe.tools.mima.plugin.MimaKeys._
val commonSettings = Seq(
scodecModule := "scodec-core",
githubProject := "scodec",
rootPackage := "scodec",
contributors ++= Seq(Contributor("mpilquist", "Michael Pilquist"), Contributor("pchiusano", "Paul Chiusano"))
)
lazy val root = project.in(file(".")).aggregate(coreJVM, coreJS).settings(commonSettings: _*).settings(
publishArtifact := false
)
lazy val core = crossProject.in(file(".")).
enablePlugins(BuildInfoPlugin).
settings(commonSettings: _*).
settings(scodecPrimaryModule: _*).
jvmSettings(scodecPrimaryModuleJvm: _*).
settings(
libraryDependencies ++= Seq(
"org.scodec" %%% "scodec-bits" % "1.1.0",
"com.chuusai" %%% "shapeless" % "2.2.5",
"org.scalatest" %%% "scalatest" % "3.0.0-M12" % "test",
"org.scalacheck" %%% "scalacheck" % "1.12.5" % "test"
),
libraryDependencies ++= (if (scalaBinaryVersion.value startsWith "2.10") Seq(compilerPlugin("org.scalamacros" % "paradise" % "2.0.1" cross CrossVersion.full)) else Nil)
).
jvmSettings(
docSourcePath := new File(baseDirectory.value, ".."),
OsgiKeys.exportPackage := Seq("!scodec.bits,scodec.*;version=${Bundle-Version}"),
libraryDependencies ++= Seq(
"org.bouncycastle" % "bcpkix-jdk15on" % "1.50" % "test"
),
binaryIssueFilters ++= Seq(
ProblemFilters.exclude[MissingMethodProblem]("scodec.codecs.UuidCodec.codec")
)
).
jsSettings(commonJsSettings: _*)
lazy val coreJVM = core.jvm
lazy val coreJS = core.js
lazy val benchmark: Project = project.in(file("benchmark")).dependsOn(coreJVM).enablePlugins(JmhPlugin).
settings(commonSettings: _*).
settings(publishArtifact := false)