-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sbt
More file actions
58 lines (54 loc) · 1.77 KB
/
build.sbt
File metadata and controls
58 lines (54 loc) · 1.77 KB
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
import build._
Global / onChangedBuildSource := ReloadOnSourceChanges
val msgpack4zPlay = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.in(file("."))
.settings(
Common.settings,
scalapropsCoreSettings,
name := msgpack4zPlayName,
libraryDependencies ++= Seq(
"com.github.xuwei-k" %%% "msgpack4z-core" % "0.6.2",
"com.github.xuwei-k" %%% "msgpack4z-native" % "0.4.0" % "test",
"com.github.scalaprops" %%% "scalaprops" % "0.10.1" % "test",
)
)
.platformsSettings(JVMPlatform, JSPlatform)(
libraryDependencies += "org.playframework" %%% "play-json" % "3.0.6",
)
.nativeSettings(
libraryDependencies += "org.playframework" %%% "play-json" % "3.1.0-M10",
scalapropsNativeSettings
)
.jsSettings(
scalacOptions += {
val a = (LocalRootProject / baseDirectory).value.toURI.toString
val g = "https://raw.githubusercontent.com/msgpack4z/msgpack4z-play/" + Common.tagOrHash.value
val key = {
if (scalaBinaryVersion.value == "3") {
"-scalajs-mapSourceURI"
} else {
"-P:scalajs:mapSourceURI"
}
}
s"${key}:$a->$g/"
},
Test / scalaJSStage := FastOptStage
)
.jvmSettings(
libraryDependencies ++= Seq(
"com.github.xuwei-k" % "msgpack4z-java" % "0.4.0" % "test",
"com.github.xuwei-k" % "msgpack4z-java06" % "0.2.0" % "test",
)
)
val msgpack4zPlayJVM = msgpack4zPlay.jvm
val msgpack4zPlayJS = msgpack4zPlay.js
val msgpack4zPlayNative = msgpack4zPlay.native
Common.settings
commands += Command.command("testSequential") {
List(msgpack4zPlayJVM, msgpack4zPlayJS, msgpack4zPlayNative).map(_.id + "/test") ::: _
}
PgpKeys.publishLocalSigned := {}
PgpKeys.publishSigned := {}
publishLocal := {}
publish := {}
Compile / publishArtifact := false