forked from dickwall/subcut
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sbt
More file actions
66 lines (52 loc) · 1.64 KB
/
build.sbt
File metadata and controls
66 lines (52 loc) · 1.64 KB
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
name := "subcut_ext"
organization := "com.pragmasoft"
version := "2.1"
crossScalaVersions := Seq("2.10.0", "2.11.1")
scalaVersion := "2.10.1"
scalacOptions += "-deprecation"
libraryDependencies += "junit" % "junit" % "4.5" % "test"
libraryDependencies += "org.scalatest" %% "scalatest" % "2.1.3" % "test"
libraryDependencies <<= (scalaVersion, libraryDependencies) { (ver, deps) =>
deps :+ "org.scala-lang" % "scala-compiler" % ver
}
publishMavenStyle := true
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")
}
publishArtifact in Test := false
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
pomIncludeRepository := { _ => false }
pomExtra := (
<url>http://github.com/dickwall/subcut</url>
<licenses>
<license>
<name>BSD-style</name>
<url>http://www.opensource.org/licenses/bsd-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:dickwall/subcut.git</url>
<connection>scm:git:git@github.com:dickwall/subcut.git</connection>
</scm>
<developers>
<developer>
<id>dickwall</id>
<name>Dick Wall</name>
<url>http://about.me/dickwall</url>
</developer>
<developer>
<id>galarragas</id>
<name>Stefano Galarraga</name>
</developer>
</developers>
<repositories>
<repository>
<id>conjars.org</id>
<url>http://conjars.org/repo/</url>
</repository>
</repositories>)