This repository has been archived by the owner on Jun 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
67 lines (50 loc) · 1.76 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
import scalariform.formatter.preferences._
name := "scala-mapifier"
organization := "com.in-and-win"
version := "0.3-SNAPSHOT"
scalaVersion := "2.11.7"
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-Xfatal-warnings", "-Xlint", "-language:reflectiveCalls")
/// Scala compiler
libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-compiler" % _)
/// Specs2
resolvers += "Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases"
libraryDependencies += "org.specs2" % "specs2_2.11" % "2.4.16" % "test"
/// Scalariform
scalariformSettings
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(AlignParameters, true)
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(IndentLocalDefs, true)
/// Publishing
publishTo <<= version { v: String =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<url>http://github.com/in-and-win/scala-mapifier</url>
<licenses>
<license>
<name>Apache</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:in-and-win/scala-mapifier.git</url>
<connection>scm:git@github.com:in-and-win/scala-mapifier.git</connection>
</scm>
<developers>
<developer>
<id>nremond</id>
<name>Nicolas Rémond</name>
<url>http://nremond.github.io</url>
</developer>
</developers>
)