Skip to content

Commit 8a2726c

Browse files
committed
Make sure buildInfo is in it's own package.
If not, this could cause issues downstream if there are multiple plugins or applications that aren't namespacing their buildInfo packages. I actually just hit on this and realized I forgot to add in buildInfoPackage here.
1 parent 90cae8b commit 8a2726c

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

build.sbt

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ lazy val root = Project("sbt-scoverage", file("."))
4343
"org.scoverage" %% "scalac-scoverage-plugin" % scoverageVersion cross (CrossVersion.full),
4444
),
4545
buildInfoKeys := Seq[BuildInfoKey]("scoverageVersion" -> scoverageVersion),
46+
buildInfoPackage := "scoverage",
4647
Test / fork := false,
4748
Test / publishArtifact := false,
4849
Test / parallelExecution := false,

src/main/scala/scoverage/ScoverageSbtPlugin.scala

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import sbt._
55
import sbt.plugins.JvmPlugin
66
import scoverage.report.{CoberturaXmlWriter, CoverageAggregator, ScoverageHtmlWriter, ScoverageXmlWriter}
77
import java.time.Instant
8-
import buildinfo.BuildInfo
98

109
object ScoverageSbtPlugin extends AutoPlugin {
1110

0 commit comments

Comments
 (0)