-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
73 lines (61 loc) · 2.07 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
organization := "com.refunctoring"
version in ThisBuild := "0.1-SNAPSHOT"
publishTo in ThisBuild := Some {
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
}
publishArtifact in Test := false
lazy val foldlScalacOptions = Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-unchecked",
"-Xfatal-warnings",
"-Xlint:-missing-interpolator,_",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-language:existentials",
"-language:implicitConversions",
"-language:higherKinds"
)
pomIncludeRepository := { _ => false }
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
developers := List(
Developer(
id="amarpotghan",
name="Amar Potghan",
email="[email protected]",
url=url("https://refunctoring.com")
))
lazy val sonataCredentials = for {
username <- sys.env.get("SONATYPE_USERNAME")
password <- sys.env.get("SONATYPE_PASSWORD")
} yield Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", username, password)
credentials in ThisBuild ++= sonataCredentials.toSeq
crossScalaVersions := Seq("2.10.6", "2.11.11", "2.12.6")
compileOrder in ThisBuild := CompileOrder.JavaThenScala
lazy val foldSettings = Seq(
version := "0.0.1",
scalaVersion := "2.12.6",
scalacOptions ++= foldlScalacOptions,
scalacOptions in Test ++= Seq("-Yrangepos"),
licenses += ("Apache-2.0", url("http://opensource.org/licenses/Apache-2.0")),
libraryDependencies ++=
Seq("org.specs2" %% "specs2-core" % "4.2.0" % "test",
"org.scalacheck" %% "scalacheck" % "1.14.0" % "test",
"org.scalaz" %% "scalaz-core" % "7.2.25")
)
val projectName = "fold"
homepage := Some(url("https://github.com/amarpotghan/scala-fold"))
scmInfo := Some(
ScmInfo(
url("https://github.com/amarpotghan/scala-fold.git"),
"scm:[email protected]/amarpotghan/scala-fold.git"))
lazy val root = (project in file(".")).
settings(foldSettings: _*).
settings(name := projectName)