Building fat jar in Scala 3

I’m trying to build a standalone jar for a Scala 3 project, and I went to use the sbt assembly plugin, but it looks like that only supports Scala 2. Is an alternative plugin already available for Scala 3, or is it necessary to hack something together?

I haven’t tried, but I doubt sbt-assembly won’t work with Scala 3, by the moment it runs everything should be bytecode already.

What error did you got? Or why do you think it won’t work?

I apologize, I was trying to use 1.1.0 instead of 1.0.0, causing an error saying the plugin couldn’t be resolved.

1 Like