Skip to content

Instantly share code, notes, and snippets.

@entrypointkr
Last active February 15, 2022 13:39
Show Gist options
  • Save entrypointkr/fdc7d820096110d6e01a8894c0981e8e to your computer and use it in GitHub Desktop.
Save entrypointkr/fdc7d820096110d6e01a8894c0981e8e to your computer and use it in GitHub Desktop.
sbt exclude scala 3 library
// https://github.com/sbt/sbt-assembly#excluding-scala-library-jars
assembly / assemblyExcludedJars := {
val cp = (assembly / fullClasspath).value
cp filter { attr =>
val name = attr.data.getName
name.startsWith("scala-") || name.startsWith("scala3-")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment