-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
85 lines (63 loc) · 2.1 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
sbtPlugin := true
name := "sbt-mdrw"
version := "1.0.0"
organization := "org.eigengo"
scalaVersion := "2.10.4"
/** Shell */
shellPrompt := { state => System.getProperty("user.name") + "> " }
shellPrompt in ThisBuild := { state => Project.extract(state).currentRef.project + "> " }
libraryDependencies ++= Seq(
"org.pegdown" % "pegdown" % "1.4.1",
"org.specs2" %% "specs2" % "2.3.4" % "test"
)
/** Compilation */
javacOptions ++= Seq("-source", "1.6", "-target", "1.6")
javaOptions += "-Xmx2G -XX:MaxPermSize=1024m"
scalacOptions ++= Seq("-deprecation", "-unchecked")
maxErrors := 20
pollInterval := 1000
logBuffered := false
cancelable := true
credentials += Credentials(Path.userHome / ".sonatype")
testOptions := Seq(Tests.Filter(s =>
Seq("Spec", "Suite", "Unit", "all").exists(s.endsWith(_)) &&
!s.endsWith("FeaturesSpec") ||
s.contains("UserGuide") ||
s.contains("index") ||
s.matches("org.specs2.guide.*")))
/** Console */
initialCommands in console := "import org.eigengo.sbtmdrw._"
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 := { x => false }
pomExtra := (
<url>http://www.eigengo.com/</url>
<licenses>
<license>
<name>BSD-style</name>
<url>http://www.opensource.org/licenses/bsd-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:eigengo/sbt-mdrw.git</url>
<connection>scm:git:[email protected]:eigengo/sbt-mdrw.git</connection>
</scm>
<developers>
<developer>
<id>janmachacek</id>
<name>Jan Machacek</name>
<url>http://www.eigengo.com</url>
</developer>
<developer>
<id>anirvanchakraborty</id>
<name>Anirvan Chakraborty</name>
<url>http://www.eigengo.com</url>
</developer>
</developers>
)