-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sbt
69 lines (62 loc) · 1.92 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
64
65
66
67
68
69
import ReleaseTransformations._
lazy val chainSettings = Seq(
organization := "org.spire-math",
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
homepage := Some(url("http://github.com/non/chain")),
scalaVersion := "2.12.6",
crossScalaVersions := Seq("2.10.6", "2.11.12", "2.12.6"),
scalacOptions ++= Seq(
"-feature",
"-deprecation",
"-unchecked"),
libraryDependencies += "org.scalacheck" %%% "scalacheck" % "1.14.0" % "test",
//scalaJSStage in Global := FastOptStage, //FIXME how to update this for sbt 1.0?
releaseCrossBuild := true,
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := Function.const(false),
publishTo := Some(if (isSnapshot.value) Opts.resolver.sonatypeSnapshots else Opts.resolver.sonatypeStaging),
pomExtra := (
<scm>
<url>git@github.com:non/chain.git</url>
<connection>scm:git:git@github.com:non/chain.git</connection>
</scm>
<developers>
<developer>
<id>non</id>
<name>Erik Osheim</name>
<url>http://github.com/non/</url>
</developer>
</developers>
),
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges))
lazy val noPublish = Seq(
publish := {},
publishLocal := {},
publishArtifact := false)
lazy val root = project
.in(file("."))
.aggregate(chainJS, chainJVM)
.settings(name := "chain-root")
.settings(chainSettings: _*)
.settings(noPublish: _*)
lazy val chain = crossProject
.crossType(CrossType.Pure)
.in(file("."))
.settings(name := "chain")
.settings(chainSettings: _*)
lazy val chainJVM = chain.jvm
lazy val chainJS = chain.js