-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Errors when producing jar using sbt-assembly #2661
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
Comments
I was able to fix this by applying a merge strategy in assemblyMergeStrategy in assembly := {
case PathList(ps @ _*) if ps.last contains "ScalaRunTime" => MergeStrategy.first
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
} Seems a bit hacky though ;) |
@smarter - WDYT? Any ideas? I'll have a look at this next week otherwise. |
dotty-library contains a custom ScalaRuntime, there are several issues with it:
I propose simply dropping the custom |
The custom ScalaRuntime got removed in #2827 so this should be fixed now, feel free to reopen if there's still an issue with sbt-assembly. |
I wanted to give dotty a spin. For my specific scenario I wanted to produce a "fat" jar using sbt-assembly. Unfortunately I got the following two errors:
I've attached a tiny reproducible example. It's the result of creating a new dotty project using
sbt new lampepfl/dotty.g8
and then adding sbt-assembly to./project/plugins.sbt
.I'm happy to help but wanted to report the issue first. I chatted with @felixmulder who encouraged me to create an issue.
Cheers,
Mads
The text was updated successfully, but these errors were encountered: