Skip to content

Commit

Permalink
chore(plugins): add sbt-buildinfo and sbt-git
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Aug 9, 2023
1 parent 98a17f0 commit a5573d5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ lazy val root = (project in file("."))
"master"
)
)
.enablePlugins(GitVersioning)
.enablePlugins(BuildInfoPlugin)
.settings(
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion,
"commitHash" -> git.gitHeadCommit.value.getOrElse("")
),
//buildInfoPackage := s"${organization}.${name}.buildinfo"
buildInfoPackage := "net.yoshinorin.qualtet.buildinfo"
)

reStart / mainClass := Some("net.yoshinorin.qualtet.BootStrap")

Expand Down
3 changes: 3 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.1.1")
addSbtPlugin("com.typesafe.sbt" % "sbt-license-report" % "1.2.0")
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "3.1.3")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.3")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0")
addSbtPlugin("com.github.sbt" % "sbt-git" % "2.0.1")

0 comments on commit a5573d5

Please sign in to comment.