Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
The Ammonite magic imports are (unfortunately!) NOT a valid Scala 😞 - the issue is that the dots within the version numbers are breaking compilation, even if you use the backticks
package $ivy
object `group::artifact:1` {
object `2` {
object `3` {
val exception = new Exception()
import $ivy.`group::artifact:1`.`2`.`3`.exception._
Copy link

przemek-pokrywka commented Oct 22, 2021

Note that the above example "works" (have you noticed the amount of backticks? 😢 ), but:

import $ivy.`group::artifact:1.2.3`.exception._

does not

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