0

Basically, I'm curious if something like SBT including the version number in a program is possible for Scala.js. The proposed solution doesn't work in scala.js, apparently due the the absence of the getPackage method:

[error] Referring to non-existent method java.lang.Class.getPackage()java.lang.Package
bbarker
  • 11,636
  • 9
  • 38
  • 62

1 Answers1

2

Use sbt-buildinfo for that. The Usage section of the readme contains everything you need.

sjrd
  • 21,805
  • 2
  • 61
  • 91