forked from davegurnell/validation
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
38 lines (33 loc) · 1.15 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
import sbtcrossproject.CrossPlugin.autoImport.crossProject
scalaVersion in ThisBuild := "2.12.6"
crossScalaVersions in ThisBuild := Seq("2.11.12", "2.12.6")
lazy val root = project.in(file("."))
.aggregate(validationJS, validationJVM)
.settings(
publish := {},
publishLocal := {}
)
lazy val validation = crossProject(JSPlatform, JVMPlatform).in(file(".")).
settings(
scalacOptions ++= Seq("-deprecation", "-feature"),
organization := "io.underscore",
name := "validation",
version := "0.0.7",
publishTo := Some(Resolver.file("file", new File("../maven-repo"))),
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.typelevel" %% "cats-core" % "1.1.0",
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.5",
"org.specs2" %% "specs2-core" % "3.8.8" % "test",
"io.monix" %% "monix" % "3.0.0-RC1" % "test"
),
scalacOptions in Test ++= Seq("-Yrangepos")
)
.jvmSettings(
// Add JVM-specific settings here
)
.jsSettings(
// Add JS-specific settings here
)
lazy val validationJVM = validation.jvm
lazy val validationJS = validation.js