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
sbt assembly fails #49
Comments
It appears the issue manifests in 1.25 and 1.26. |
@gfl You need a merge strategy that accounts for the BUILD files unfortunately. I'm not sure how this worked previously for you (will take a look to see if something has regressed on this end) but you should update the merge strategy to be along the lines of:
Additionally, you should no longer need the |
Thanks @cacoco, adding the BUILD files to my Merge Strategy fixed the assembly issue. We'd already realised that the twitter resolver was not needed anymore. Thanks! |
@cacoco We came across the same issue in creating a fat jar. I am confused what are actually "BUILD" files meaning in this jar creating process? |
@liopei19nn BUILD files are for the build system we use internally: Pants. They are present in the source but are not used and are merely treated as text files. Since they appear in multiple jars with the same name, SBT needs to know how to "merge" them when creating a fat jar. Since they are not necessary, you can simply tell SBT to discard them. |
sbt assembly fails with new project with no other dependencies.
Expected behavior
sbt assembly should create a fat jar.
Actual behavior
It fails to create a fat jar..
Steps to reproduce the behavior
We created an empty sbt project with the following build.sbt:
This in plugins.sbt:
Running sbt clean assembly fails with the following:
The text was updated successfully, but these errors were encountered: