forked from tristanjuricek/knockoff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
58 lines (46 loc) · 1.5 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
name := "knockoff"
organization := "com.tristanhunt"
version := "0.8.1"
scalaVersion := "2.10.0"
scalacOptions <++= scalaVersion map {
case sv if sv startsWith "2.10" => Seq("-language:implicitConversions")
case _ => Nil
}
crossScalaVersions := Seq(
"2.10.0",
"2.9.2", "2.9.1-1", "2.9.1", "2.9.0-1", "2.9.0",
"2.8.2"
)
libraryDependencies <+= scalaVersion {
case sv if sv startsWith "2.10" => "org.scalatest" %% "scalatest" % "1.9" % "test"
case _ => "org.scalatest" %% "scalatest" % "1.8" % "test"
}
// Publishing setup to Sonatype's OSS hosting.
//
// We generally do not publish anything but releases for this project.
publishMavenStyle := true
// Do not publish test artifacts
publishArtifact in Test := false
pomExtra := (
<url>http://tristanjuricek.com/knockoff</url>
<licenses>
<license>
<name>BSD-style</name>
<url>https://github.com/tristanjuricek/knockoff/blob/master/license.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git://github.com/tristanjuricek/knockoff.git</url>
<connection>scm:git:[email protected]:tristanjuricek/knockoff.git</connection>
</scm>
<developers>
<developer>
<id>tristanjuricek</id>
<name>Tristan Juricek</name>
<url>http://tristanjuricek.com</url>
</developer>
</developers>)
publishTo := Some("knockoff Sonatype releases" at
"https://oss.sonatype.org/service/local/staging/deploy/maven2")
credentials += Credentials(Path.userHome / ".sbt" / "sonatype.sbt")