-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathbuild.sbt
93 lines (83 loc) · 2.88 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
lazy val jacocoVersion = "0.8.12"
ThisBuild / version := {
if ((ThisBuild / isSnapshot).value) "3.4.0" + "-SNAPSHOT"
else (ThisBuild / version).value
}
lazy val jacocoPlugin = (project in file("."))
.enablePlugins(SbtPlugin)
.enablePlugins(BuildInfoPlugin)
.enablePlugins(ParadoxSitePlugin)
.enablePlugins(GhpagesPlugin)
.settings(nocomma {
name := "sbt-jacoco"
libraryDependencies ++= Seq(
"org.jacoco" % "org.jacoco.core" % jacocoVersion,
"org.jacoco" % "org.jacoco.report" % jacocoVersion,
"com.jsuereth" %% "scala-arm" % "2.0",
"com.fasterxml.jackson.core" % "jackson-core" % "2.18.2",
"org.scalaj" %% "scalaj-http" % "2.4.2",
"commons-codec" % "commons-codec" % "1.17.2",
"org.eclipse.jgit" % "org.eclipse.jgit" % "5.13.3.202401111512-r",
"org.scalatest" %% "scalatest" % "3.2.19" % Test,
"org.mockito" % "mockito-core" % "4.11.0" % Test
)
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-feature",
"-Xfuture",
"-Ywarn-adapted-args",
"-Ywarn-dead-code"
)
buildInfoPackage := "com.github.sbt.jacoco.build"
buildInfoKeys := Seq[BuildInfoKey](
Test / resourceDirectory,
version,
"jacocoVersion" -> jacocoVersion,
"sbtVersion" -> sbtVersion.value
)
Compile / paradoxNavigationDepth := 3
git.remoteRepo := "[email protected]:sbt/sbt-jacoco.git"
headerLicense := Some(
HeaderLicense.Custom(
"""|This file is part of sbt-jacoco.
|
|Copyright (c) Joachim Hofer & contributors
|All rights reserved.
|
|This program and the accompanying materials
|are made available under the terms of the Eclipse Public License v1.0
|which accompanies this distribution, and is available at
|http://www.eclipse.org/legal/epl-v10.html
|""".stripMargin
)
)
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
}
scriptedBufferLog := false
})
Global / onChangedBuildSource := ReloadOnSourceChanges
ThisBuild / organization := "com.github.sbt"
ThisBuild / description := "an sbt plugin for JaCoCo Code Coverage"
ThisBuild / homepage := Some(url("https://www.scala-sbt.org/sbt-jacoco/"))
ThisBuild / licenses += (("Eclipse Public License v1.0", url("http://www.eclipse.org/legal/epl-v10.html")))
ThisBuild / developers := List(
Developer(
"jmhofer",
"Joachim Hofer",
"@jmhofer",
url("https://github.com/jmhofer")
)
)
ThisBuild / pomIncludeRepository := { _ =>
false
}
ThisBuild / publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
ThisBuild / publishMavenStyle := true
ThisBuild / dynverSonatypeSnapshots := true