forked from lloydmeta/schwatcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
80 lines (66 loc) · 1.85 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
name := "schwatcher"
version := "0.3.6-SNAPSHOT"
scalaVersion := "2.12.4"
crossScalaVersions := Seq("2.11.11", "2.12.4")
crossVersion := CrossVersion.binary
resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
val akkaVersion = "2.5.6"
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.0" % Test,
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % Test,
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"io.reactivex" %% "rxscala" % "0.26.5"
)
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
organization := "com.beachape.filemanagement"
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ =>
false
}
pomExtra := (
<url>https://github.com/lloydmeta/schwatcher</url>
<licenses>
<license>
<name>MIT</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>lloydmeta</id>
<name>Lloyd Chan</name>
<url>https://beachape.com</url>
</developer>
</developers>
)
scalacOptions ++= {
val common = Seq(
"-deprecation",
"-encoding",
"UTF-8", // yes, this is 2 args
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
"-Yno-adapted-args",
"-Ywarn-dead-code", // N.B. doesn't work well with the ??? hole
"-Ywarn-numeric-widen",
"-Xfuture",
"-Ywarn-unused-import" // 2.11 only
)
if (scalaVersion.value.startsWith("2.12")) {
common :+ "-Xlint:-unused,_"
} else {
common :+ "-Xlint"
}
}