Skip to content

Instantly share code, notes, and snippets.

@rossabaker
Last active September 7, 2025 04:35
Show Gist options
  • Save rossabaker/441675 to your computer and use it in GitHub Desktop.
Save rossabaker/441675 to your computer and use it in GitHub Desktop.
migrated to paste.rossabaker.com
@rossabaker
Copy link
Author

sbt doesn't resolve library conflicts across Ivy configurations. If a compile-scoped jar depends on log4j-1.2.12, and a runtime-scoped jar depends on log4j-1.2.14, both end up on sbt's runtime classpath and in the jar. The above lets Ivy resolve the conflicts in a more Maven-like fashion, at the expense of a bloated lib_managed (each jar is copied into each child configuration).

Is there a better way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment