Skip to content

Commit 8cb5247

Browse files
committed
add the git-hash to the manifest's attributes
1 parent 9d32c55 commit 8cb5247

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
@@ -2113,6 +2113,8 @@ object Build {
21132113
Compile / scalacOptions ++= Seq("--java-output-version", Versions.minimumJVMVersion),
21142114
// Specify the default entry point of the compiler
21152115
Compile / mainClass := Some("dotty.tools.dotc.Main"),
2116+
// Add entry's to the MANIFEST
2117+
packageOptions += ManifestAttributes(("Git-Hash", VersionUtil.gitHash)), // Used by the REPL
21162118
// Packaging configuration of the stdlib
21172119
Compile / packageBin / publishArtifact := true,
21182120
Compile / packageDoc / publishArtifact := false,
@@ -2237,6 +2239,8 @@ object Build {
22372239
Compile / scalacOptions ++= Seq("--java-output-version", Versions.minimumJVMVersion),
22382240
// Specify the default entry point of the compiler
22392241
Compile / mainClass := Some("dotty.tools.dotc.Main"),
2242+
// Add entry's to the MANIFEST
2243+
packageOptions += ManifestAttributes(("Git-Hash", VersionUtil.gitHash)), // Used by the REPL
22402244
// Packaging configuration of the stdlib
22412245
Compile / packageBin / publishArtifact := true,
22422246
Compile / packageDoc / publishArtifact := false,

0 commit comments

Comments
 (0)