-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
46 lines (43 loc) · 1.47 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
lazy val buildSettings = Seq(
scalacOptions ++= Seq("-feature", "-unchecked", "-deprecation"),
initialize :=
(if (scalaBinaryVersion.value == "2.10") sys.props("scalac.patmat.analysisBudget") = "off"
else sys.props.remove("scalac.patmat.analysisBudget"))
)
lazy val publishSettings = Seq(
organization := "com.github.mpetruska",
name := "one-lensing",
homepage := Some(url("https://github.com/mpetruska/one-lensing")),
version := "0.1-SNAPSHOT",
licenses := Seq("MIT" -> url("http://www.opensource.org/licenses/mit-license.php")),
crossScalaVersions := Seq("2.10.6", "2.11.7", "2.12.1"),
publishMavenStyle := true,
pomExtra :=
<scm>
<url>git@github.com:mpetruska/one-lensing.git</url>
<connection>scm:git@github.com:mpetruska/one-lensing.git</connection>
</scm>
<developers>
<developer>
<id>mpetruska</id>
<name>Mark Petruska</name>
</developer>
</developers>,
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
)
lazy val oneLensing = (project in file("."))
.settings(buildSettings: _*)
.settings(publishSettings: _*)
.settings(
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-core" % "7.2.11",
"org.scalatest" %% "scalatest" % "3.0.1" % Test
)
)