def env()

in build.sbt [56:70]


def env(key: String): Option[String] = Option(System.getenv(key))
buildInfoKeys := {
  lazy val buildInfo = BuildInfo(baseDirectory.value)
  Seq[BuildInfoKey](
    Compile / libraryDependencies,
    name,
    version,
    "buildNumber" -> buildInfo.buildIdentifier,
    "gitCommitId" -> buildInfo.revision,
    // so this next one is constant to avoid it always recompiling on dev machines.
    // we only really care about build time on teamcity, when a constant based on when
    // it was loaded is just fine
    "buildTime" -> System.currentTimeMillis
  )
}