Skip to content

Commit 09c28cb

Browse files
committed
add the git-hash to the manifest's attributes
1 parent 74303f1 commit 09c28cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

project/Build.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2143,6 +2143,8 @@ object Build {
21432143
Compile / scalacOptions ++= Seq("--java-output-version", Versions.minimumJVMVersion),
21442144
// Specify the default entry point of the compiler
21452145
Compile / mainClass := Some("dotty.tools.dotc.Main"),
2146+
// Add entry's to the MANIFEST
2147+
packageOptions += ManifestAttributes(("Git-Hash", VersionUtil.gitHash)), // Used by the REPL
21462148
// Packaging configuration of the stdlib
21472149
Compile / packageBin / publishArtifact := true,
21482150
Compile / packageDoc / publishArtifact := false,
@@ -2268,6 +2270,8 @@ object Build {
22682270
Compile / scalacOptions ++= Seq("--java-output-version", Versions.minimumJVMVersion),
22692271
// Specify the default entry point of the compiler
22702272
Compile / mainClass := Some("dotty.tools.dotc.Main"),
2273+
// Add entry's to the MANIFEST
2274+
packageOptions += ManifestAttributes(("Git-Hash", VersionUtil.gitHash)), // Used by the REPL
22712275
// Packaging configuration of the stdlib
22722276
Compile / packageBin / publishArtifact := true,
22732277
Compile / packageDoc / publishArtifact := false,

0 commit comments

Comments
 (0)