-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Appending additional files to the fat JAR #227
Comments
+1. assembledMappings is listed as one of the keys for the assembly task on the README.md but googling for it I only found older examples that did not compile in sbt 0.13.13. Any current examples? I am trying to add an application.conf file that was generated by the sbt editsource plugin (http://software.clapper.org/sbt-editsource/) to my fat jar. Any pointers in much appreciated! |
Example:
This put my application.conf under module/target/application.conf. I then used the following assembledMappings to get that application.conf into the root of my fat jar:
In this case the file did not come from a jar file so the first argument in MappingSet is None, otherwise Some(new File(jarFilePath))? I have not tried that out but according to the MappingSet comments in AssemblyKeys.scala:
|
There should be easier way to append to
assembledMappings
.If there is one, document it.
The text was updated successfully, but these errors were encountered: