-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
executable file
·55 lines (51 loc) · 1.79 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
import sbtcrossproject.{crossProject, CrossType}
lazy val commonSettings = Seq(
name := "harana-sdk",
version := "134.0",
scalaVersion := "2.12.5",
organization := "com.harana",
resolvers += Resolver.sonatypeRepo("releases"),
updateOptions := updateOptions.value.withCachedResolution(true),
//addCompilerPlugin("io.tryp" % "splain" % "0.2.7" cross CrossVersion.patch),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full),
scalacOptions ++= Seq("-deprecation"),
javacOptions ++= Seq(
)
)
lazy val root = project.in(file(".")).
aggregate(jvm, js).
settings(commonSettings).
settings(
publish := {},
publishLocal := {}
).
enablePlugins(SbtOsgi)
lazy val harana = crossProject(JSPlatform, JVMPlatform).in(file(".")).
settings(commonSettings).
settings(
libraryDependencies ++= Seq(
"org.typelevel" %%% "squants" % "1.3.0",
"com.github.marklister" %%% "base64" % "0.2.4",
"io.circe" %%% "circe-core" % "0.9.1",
"io.circe" %%% "circe-generic" % "0.9.1",
"io.circe" %%% "circe-generic-extras" % "0.9.1",
"io.circe" %%% "circe-parser" % "0.9.1",
"com.beachape" %%% "enumeratum-circe" % "1.5.15"
)
).
jvmSettings(
commonSettings,
libraryDependencies ++= Seq(
"org.osgi" % "org.osgi.core" % "6.0.0",
"commons-codec" % "commons-codec" % "1.11",
"javax.inject" % "javax.inject" % "1",
"org.scala-js" %% "scalajs-stubs" % "0.6.22" % "provided"
)
).
jsSettings(
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-java-time" % "0.2.3"
)
)
lazy val jvm = harana.jvm
lazy val js = harana.js