-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.sbt
50 lines (42 loc) · 1.49 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
name := "RösHTTP root project"
crossScalaVersions := Seq("2.12.11", "2.13.2")
lazy val root = project.in(file("."))
.aggregate(scalaHttpJS, scalaHttpJVM)
lazy val scalaHttp = crossProject(JSPlatform, JVMPlatform).in(file("."))
// .configureCross(InBrowserTesting.cross)
.settings(
name := "roshttp",
version := "3.0.0",
scalaVersion := "2.13.2",
organization := "fr.hmil",
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
homepage := Some(url("http://github.com/hmil/RosHTTP")),
pomExtra := (
<scm>
<url>[email protected]:hmil/RosHTTP.git</url>
<connection>scm:git:[email protected]:hmil/RosHTTP.git</connection>
</scm>
<developers>
<developer>
<id>hmil</id>
<name>Hadrien Milano</name>
<url>https://github.com/hmil/</url>
</developer>
</developers>
),
pomIncludeRepository := { _ => false },
libraryDependencies += "org.scala-lang.modules" %% "scala-collection-compat" % "2.1.6",
libraryDependencies += "com.lihaoyi" %%% "utest" % "0.7.4" % Test,
libraryDependencies += "io.monix" %%% "monix" % "3.2.1",
testFrameworks += new TestFramework("utest.runner.Framework")
)
.jvmSettings(
// jvm-specific settings
)
.jsSettings(
// js-specific settings
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "1.0.0",
jsEnv := new org.scalajs.jsenv.nodejs.NodeJSEnv()
)
lazy val scalaHttpJVM = scalaHttp.jvm
lazy val scalaHttpJS = scalaHttp.js