forked from scoverage/sbt-scoverage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
57 lines (44 loc) · 1.41 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
name := "sbt-scoverage"
organization := "org.scoverage"
sbtPlugin := true
scalacOptions := Seq("-unchecked", "-deprecation", "-feature", "-encoding", "utf8")
resolvers ++= {
if (isSnapshot.value) Seq(Resolver.sonatypeRepo("snapshots")) else Nil
}
libraryDependencies += "org.scoverage" %% "scalac-scoverage-plugin" % "1.3.0"
publishMavenStyle := true
publishArtifact in Test := false
ScriptedPlugin.scriptedSettings
scriptedLaunchOpts ++= Seq(
"-Xmx1024M", "-XX:MaxPermSize=256M",
"-Dplugin.version=" + version.value
)
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseCrossBuild := false
publishTo := {
if (isSnapshot.value)
Some("snapshots" at "https://oss.sonatype.org/content/repositories/snapshots")
else
Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
}
pomExtra := {
<url>https://github.com/scoverage/sbt-scoverage</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/sbt-scoverage.git</url>
<connection>scm:[email protected]:scoverage/sbt-scoverage.git</connection>
</scm>
<developers>
<developer>
<id>sksamuel</id>
<name>sksamuel</name>
<url>http://github.com/sksamuel</url>
</developer>
</developers>
}