For additional manifest attributes, you have to append `ManifestAttributes` to `packageOptions`. Scoped `packageOptions` to appropriate task is also worth considering (e.g., you'll hardly bother to have Build-Machine show up in MANIFEST.MF of scaladoc.jar).
- Indrajit
[1] https://github.com/harrah/xsbt/issues/145
On Wednesday 14 September 2011 at 3:39 PM, Kevin Wright wrote:
>
> As part of a webapp build, I want to generate some additional entries in the manifest, equivalent to the following fragment from Maven via maven-war-plugin:
>
> <manifestEntries>
> <Group-Id>${project.groupId}</Group-Id>
> <Artifact-Id>${project.artifactId}</Artifact-Id>
> <Version>${project.version}</Version>
> <Git-SHA1>${git.buildNumber}</Git-SHA1>
> <Built-When>${maven.build.timestamp}</Built-When>
> <Build-Machine>${build.host.name (http://build.host.name)}</Build-Machine>
> <Build-Number>${CRUISE_PIPELINE_COUNTER}</Build-Number>
> </manifestEntries>
>
> I'm already happy with using <<= to pull settings around and manipulate them, so I don't think I'd have any problem generating an appropriate fragment and pushing it into a setting. But I have no idea how/where I should be configuring extra manifest entries.
>
> Any advice would be gratefully received :)
>
> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To post to this group, send email to simple-b...@googlegroups.com (mailto:simple-b...@googlegroups.com).
> To unsubscribe from this group, send email to simple-build-t...@googlegroups.com (mailto:simple-build-t...@googlegroups.com).
> For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.