blob: 9d48522977dfe143281ccdead7cb8e13e07ea3b3 (
plain) (
blame)
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
|
// shadow sbt-scalajs' crossProject and CrossType until Scala.js 1.0.0 is released
import sbtcrossproject.{crossProject, CrossType}
val testSettings = Seq(
libraryDependencies += "com.lihaoyi" %%% "utest" % "0.6.4" % "test",
testFrameworks += new TestFramework("utest.runner.Framework")
)
version in ThisBuild := {
import sys.process._
("git describe --always --dirty=-SNAPSHOT --match v[0-9].*" !!).tail.trim
}
lazy val yamlesque = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.crossType(CrossType.Pure)
.settings(testSettings)
.settings(
scalaVersion := crossScalaVersions.value.head
)
.jvmSettings(
crossScalaVersions := "2.12.4" :: "2.11.12" :: Nil
)
.jsSettings(
crossScalaVersions := "2.12.4" :: "2.11.12" :: Nil
)
.nativeSettings(
crossScalaVersions := "2.11.12" :: Nil,
nativeLinkStubs := true // required for utest
)
lazy val yamlesqueJVM = yamlesque.jvm
lazy val yamlesqueJS = yamlesque.js
lazy val yamlesqueNative = yamlesque.native
lazy val `yamlesque-spray-json` = crossProject(JVMPlatform)
.crossType(CrossType.Pure)
.dependsOn(yamlesque)
.settings(testSettings)
.settings(
libraryDependencies += "io.spray" %%% "spray-json" % "1.3.4"
)
lazy val `yamlesque-spray-jsonJVM` = `yamlesque-spray-json`.jvm
lazy val root = (project in file("."))
.aggregate(
yamlesqueJVM,
yamlesqueJS,
yamlesqueNative,
`yamlesque-spray-jsonJVM`
)
|