forked from scoverage/sbt-scoverage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
58 lines (54 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 := "sbt-scoverage"
import sbt.ScriptedPlugin.autoImport.scriptedLaunchOpts
def scoverageVersion = "1.4.8"
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.14",
version := "1.9.0-livongo-1.0.2"
)
)
lazy val root = Project("sbt-scoverage", file("."))
.enablePlugins(SbtPlugin, BuildInfoPlugin)
.settings(
libraryDependencies ++= Seq(
"org.scoverage" %% "scalac-scoverage-plugin" % scoverageVersion cross (CrossVersion.full)
),
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) Seq(Resolver.sonatypeRepo("snapshots")) else Nil
},
scriptedLaunchOpts ++= Seq(
"-Xmx1024M",
"-Dplugin.version=" + version.value
)
)