forked from dickwall/subcut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
74 lines (60 loc) · 2.07 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
name := "subcut"
organization := "com.escalatesoft.subcut"
version := "2.0-SNAPSHOT"
crossScalaVersions := Seq("2.9.2", "2.9.1", "2.9.0-1", "2.9.0")
scalaVersion := "2.9.2"
scalacOptions += "-deprecation"
libraryDependencies += "org.scalatest" %% "scalatest" % "1.8" % "test"
libraryDependencies += "junit" % "junit" % "4.5" % "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")
pomExtra := <xml:group>
<inceptionYear>2011</inceptionYear>
<name>Scala Uniquely Bound Classes Under Traits: SubCut</name>
<description>
A simple, lightweight and convenient way to inject dependencies
in scala, in a scala-like way.
</description>
<url>http://scala-tools.org/mvnsites/subcut</url>
<organization>
<name>scala-tools.org</name>
<url>http://scala-tools.org/mvnsites/subcut/</url>
</organization>
<licenses>
<license>
<name>Apache License, ASL Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>dickwall</id>
<name>Dick Wall</name>
<timezone>-8</timezone>
<email>dwall [at] bldc.org</email>
<roles>
<role>BDFL</role>
</roles>
</developer>
</developers>
<issueManagement>
<system>GitHub</system>
<url>http://github.com/dickwall/subcut/issues</url>
</issueManagement>
<scm>
<connection>scm:git://github.com/dickwall/subcut.git</connection>
<url>http://github.com/dickwall/subcut/tree/master</url>
</scm>
</xml:group>