-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
87 lines (74 loc) · 2.26 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import ReleaseTransformations._
lazy val catsCheckSettings = Seq(
organization := "org.typelevel",
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
homepage := Some(url("http://github.com/non/cats-check")),
scalaVersion := "2.12.0",
crossScalaVersions := Seq("2.10.6", "2.11.8", "2.12.0"),
scalacOptions ++= Seq(
"-feature",
"-deprecation",
"-unchecked"
),
libraryDependencies ++= Seq(
"org.scalacheck" %%% "scalacheck" % "1.13.4",
"org.typelevel" %%% "cats" % "0.8.1",
"org.typelevel" %%% "cats-laws" % "0.8.1" % "test",
"org.scalatest" %%% "scalatest" % "3.0.0" % "test",
"org.typelevel" %%% "discipline" % "0.7.2" % "test"
),
releaseCrossBuild := true,
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := Function.const(false),
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")
},
pomExtra := (
<scm>
<url>[email protected]:non/jawn.git</url>
<connection>scm:git:[email protected]:non/jawn.git</connection>
</scm>
<developers>
<developer>
<id>d_m</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,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _)),
pushChanges))
lazy val noPublish = Seq(
publish := {},
publishLocal := {},
publishArtifact := false)
lazy val root = project
.in(file("."))
.aggregate(catsCheckJS, catsCheckJVM)
.settings(name := "catsCheck-root")
.settings(catsCheckSettings: _*)
.settings(noPublish: _*)
lazy val catsCheck = crossProject
.crossType(CrossType.Pure)
.in(file("."))
.settings(name := "catsCheck")
.settings(catsCheckSettings: _*)
lazy val catsCheckJVM = catsCheck.jvm
lazy val catsCheckJS = catsCheck.js