forked from mdedetrich/webmodels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
63 lines (56 loc) · 1.98 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
51
52
53
54
55
56
57
58
59
60
61
62
63
import PgpKeys.publishSigned
name := "webmodels"
val currentScalaVersion = "2.12.4"
val circeVersion = "0.9.0"
val specs2Version = "4.0.0"
scalaVersion in ThisBuild := currentScalaVersion
crossScalaVersions in ThisBuild := Seq("2.11.11", currentScalaVersion)
scalafmtVersion in ThisBuild := "1.1.0"
scalacOptions in Test in ThisBuild ++= Seq("-Yrangepos")
lazy val root = project
.in(file("."))
.aggregate(webmodelsJS, webmodelsJVM)
.settings(
publish := {},
publishLocal := {},
publishSigned := {}
)
lazy val webmodels = crossProject
.in(file("."))
.settings(
name := "webmodels",
organization := "org.mdedetrich",
version := "0.2.1",
homepage := Some(url("https://github.com/mdedetrich/webmodels")),
scmInfo := Some(ScmInfo(url("https://github.com/mdedetrich/webmodels"), "[email protected]:mdedetrich/webmodels.git")),
developers := List(
Developer("mdedetrich", "Matthew de Detrich", "[email protected]", url("https://github.com/mdedetrich"))
),
licenses += ("BSD 3 Clause", url("https://opensource.org/licenses/BSD-3-Clause")),
publishMavenStyle := true,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
publishArtifact in Test := false,
pomIncludeRepository := (_ => false)
)
.jvmSettings(
libraryDependencies ++= Seq(
"io.circe" %% "circe-core" % circeVersion,
"org.specs2" %% "specs2-core" % specs2Version % Test,
"io.circe" %% "circe-parser" % circeVersion % Test
)
)
.jsSettings(
libraryDependencies ++= Seq(
"io.circe" %%% "circe-core" % circeVersion,
"org.specs2" %%% "specs2-core" % specs2Version % Test,
"io.circe" %%% "circe-parser" % circeVersion % Test
)
)
lazy val webmodelsJVM = webmodels.jvm
lazy val webmodelsJS = webmodels.js