How to add custom lines to MANIFEST.MF?
问题 Adding custom key-value-pairs to the MANIFEST.MF using Build.scala seems not to work. Here is my code: import sbt._ import Keys._ import java.util.Date object Build extends Build { packageOptions in (Compile, packageBin) += Package.ManifestAttributes( "Build" -> "true" ) } When I add: packageOptions in (Compile, packageBin) += Package.ManifestAttributes( "Sign" -> "true" ) To my build.sbt then only Sign reaches my MANIFEST.MF. Any thoughts? 回答1: I think you may want something like this (note