sbt / sbt-onejar

Packages your project using One-JAR™
MIT License
268 stars 45 forks source link

Pass One-Jar-Expand to sbt-onejar #23

Closed erikkaplun closed 10 years ago

erikkaplun commented 10 years ago

There don't seem to be a setting or an obvious way to set the One-Jar-Expand attribute you'd normally set by means of a boot-manifest.mf file in the root directory.

Could this be added to sbt-onejar in one way or another?

erikkaplun commented 10 years ago

Sorry, closed accidentally...

erikkaplun commented 10 years ago

OK, there seems to be an undocumented setting packageOptions in oneJar which can be set:

packageOptions in oneJar := Seq(ManifestAttributes(
    (MAIN_CLASS, "com.simontuffs.onejar.Boot"),
    (new Name("One-Jar-Expand"), "main/myproject.jar")))

however, is it expected users of sbt-onejar look this up in the source code or should this be documented?