Can I access my Scala app’s name and version (as set in SBT) from code?
sbt-buildinfo I just wrote sbt-buildinfo. After installing the plugin: lazy val root = (project in file(“.”)). enablePlugins(BuildInfoPlugin). settings( buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion), buildInfoPackage := “foo” ) Edit: The above snippet has been updated to reflect more recent version of sbt-buildinfo. It generates foo.BuildInfo object with any setting you want by customizing buildInfoKeys. Ad-hoc … Read more