diff options
author | Bartosz Krasiński <bartosz@krasinski.biz> | 2016-11-12 20:58:31 +0100 |
---|---|---|
committer | Bartosz Krasiński <bartosz@krasinski.biz> | 2016-11-12 21:15:11 +0100 |
commit | 209fc4c7b68db69103630ff87c90f840afe7d1c1 (patch) | |
tree | 01b1b3faf1acb61121bef3280e8ed7f5c2ce1035 /project/Build.scala | |
parent | c4f2024188bc7410e1365d0c54b1a04e41a662ff (diff) | |
download | dotty-209fc4c7b68db69103630ff87c90f840afe7d1c1.tar.gz dotty-209fc4c7b68db69103630ff87c90f840afe7d1c1.tar.bz2 dotty-209fc4c7b68db69103630ff87c90f840afe7d1c1.zip |
Report git-hash used to package the distribution - Closes #1319
Diffstat (limited to 'project/Build.scala')
-rw-r--r-- | project/Build.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/project/Build.scala b/project/Build.scala index 7c57bd862..5b8465b4e 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -6,6 +6,7 @@ import scala.reflect.io.Path import org.scalajs.sbtplugin.ScalaJSPlugin import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._ +import sbt.Package.ManifestAttributes object DottyBuild extends Build { @@ -172,6 +173,9 @@ object DottyBuild extends Build { fork in Test := true, parallelExecution in Test := false, + // Add git-hash used to package the distribution to the manifest to know it in runtime and report it in REPL + packageOptions += ManifestAttributes(("Git-Hash", VersionUtil.gitHash)), + // http://grokbase.com/t/gg/simple-build-tool/135ke5y90p/sbt-setting-jvm-boot-paramaters-for-scala javaOptions <++= (dependencyClasspath in Runtime, packageBin in Compile) map { (attList, bin) => // put the Scala {library, reflect} in the classpath |