forked from scoverage/scalac-scoverage-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
61 lines (48 loc) · 1.64 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
name := "scalac-scoverage-plugin"
organization := "com.sksamuel.scoverage"
version := "0.95.6"
scalaVersion := "2.10.3"
scalacOptions := Seq("-unchecked", "-deprecation", "-feature", "-encoding", "utf8")
crossScalaVersions := Seq("2.9.2", "2.10.0")
libraryDependencies ++= Seq(
"commons-io" % "commons-io" % "2.4",
"org.scala-lang" % "scala-compiler" % "2.10.3" % "provided",
"org.scalatest" %% "scalatest" % "2.0" % "test",
"org.mockito" % "mockito-all" % "1.9.5" % "test"
)
publishMavenStyle := true
publishArtifact in Test := false
parallelExecution in Test := false
pomIncludeRepository := {
_ => false
}
javacOptions ++= Seq("-source", "1.6", "-target", "1.6")
publishTo <<= version {
(v: String) =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some(Resolver.file("file", new File(Path.userHome.absolutePath + "/.m2/repository")))
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
pomExtra := {
<url>https://github.com/scoverage/scalac-scoverage-plugin</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:scoverage/scalac-scoverage-plugin.git</url>
<connection>scm:[email protected]:scoverage/scalac-scoverage-plugin.git</connection>
</scm>
<developers>
<developer>
<id>sksamuel</id>
<name>Stephen Samuel</name>
<url>http://github.com/sksamuel</url>
</developer>
</developers>
}