forked from scoverage/sbt-scoverage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
60 lines (56 loc) · 1.68 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
name := "sbt-scoverage"
import sbt.ScriptedPlugin.autoImport.scriptedLaunchOpts
lazy val scoverageVersion = "2.1.1"
inThisBuild(
List(
organization := "org.scoverage",
homepage := Some(url("http://scoverage.org/")),
developers := List(
Developer(
"sksamuel",
"Stephen Samuel",
url("https://github.com/sksamuel")
),
Developer(
"gslowikowski",
"Grzegorz Slowikowski",
url("https://github.com/gslowikowski")
)
),
licenses := Seq(
"Apache-2.0" -> url("http://www.apache.org/license/LICENSE-2.0")
),
scalaVersion := "2.12.19"
)
)
lazy val root = Project("sbt-scoverage", file("."))
.enablePlugins(SbtPlugin, BuildInfoPlugin)
.settings(
libraryDependencies ++= Seq(
"org.scoverage" %% "scalac-scoverage-plugin" % scoverageVersion cross (CrossVersion.full),
"org.scoverage" %% "scalac-scoverage-reporter" % scoverageVersion,
"org.scoverage" %% "scalac-scoverage-domain" % scoverageVersion,
"org.scoverage" %% "scalac-scoverage-serializer" % scoverageVersion
),
buildInfoKeys := Seq[BuildInfoKey]("scoverageVersion" -> scoverageVersion),
buildInfoPackage := "scoverage",
Test / fork := false,
Test / publishArtifact := false,
Test / parallelExecution := false,
scalacOptions := Seq(
"-unchecked",
"-deprecation",
"-feature",
"-encoding",
"utf8"
),
resolvers ++= {
if (isSnapshot.value) Resolver.sonatypeOssRepos("snapshots") else Nil
},
scriptedLaunchOpts ++= Seq(
"-Xmx1024M",
"-Dplugin.version=" + version.value
)
)