-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
75 lines (54 loc) · 1.95 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
/** Project */
name := "specs2-scalaz-core"
version := "6.0.1"
organization := "org.specs2"
scalaVersion := "2.10.0-M3"
/** Shell */
shellPrompt := { state => System.getProperty("user.name") + "> " }
shellPrompt in ThisBuild := { state => Project.extract(state).currentRef.project + "> " }
/** Dependencies */
resolvers ++= Seq("releases" at "http://oss.sonatype.org/content/repositories/releases",
"snapshots" at "http://oss.sonatype.org/content/repositories/snapshots")
/** Compilation */
javacOptions ++= Seq("-Xmx1812m", "-Xms512m", "-Xss4m")
javaOptions += "-Xmx2G"
scalacOptions += "-deprecation"
scalacOptions += "-unchecked"
maxErrors := 20
pollInterval := 1000
/** Console */
initialCommands in console := "import org.specs2._"
// Packaging
// disable publishing the test API jar
//publishArtifact in (Compile, packageDoc) := false
/** Publishing */
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
publishTo <<= version { v: String =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("staging" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { x => false }
pomExtra := (
<url>http://specs2.org/</url>
<licenses>
<license>
<name>MIT-style</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>http://github.com/etorreborre/specs2</url>
<connection>scm:http:http://[email protected]/etorreborre/specs2.git</connection>
</scm>
<developers>
<developer>
<id>etorreborre</id>
<name>Eric Torreborre</name>
<url>http://etorreborre.blogspot.com/</url>
</developer>
</developers>
)