forked from trepidacious/scalajs-react-sortable-hoc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
45 lines (34 loc) · 1.17 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
import sbtcrossproject.CrossPlugin.autoImport.crossProject
name := "scalajs-react-sortable-hoc root"
version in ThisBuild := "0.0.2"
organization in ThisBuild := "org.rebeam"
scalaVersion in ThisBuild := "2.12.6"
crossScalaVersions in ThisBuild := Seq("2.11.12", "2.12.6")
scalacOptions in ThisBuild ++= Seq(
"-feature",
"-deprecation",
"-encoding", "UTF-8",
"-unchecked",
"-Xfatal-warnings",
"-Xlint"
)
val scalajsReactVersion = "1.2.3"
lazy val root = project.in(file(".")).
aggregate(scalaJSReactSortableHOCJS, scalaJSReactSortableHOCJVM).
settings(
publish := {},
publishLocal := {}
)
lazy val scalaJSReactSortableHOC = crossProject(JSPlatform, JVMPlatform).in(file(".")).
//Settings for all projects
settings(
name := "scalajs-react-sortable-hoc"
).jsSettings(
//Scalajs dependencies that are used on the client only
libraryDependencies ++= Seq(
"com.github.japgolly.scalajs-react" %%% "core" % scalajsReactVersion,
"com.github.japgolly.scalajs-react" %%% "extra" % scalajsReactVersion
)
)
lazy val scalaJSReactSortableHOCJVM = scalaJSReactSortableHOC.jvm
lazy val scalaJSReactSortableHOCJS = scalaJSReactSortableHOC.js