Created
October 22, 2021 18:36
-
-
Save przemek-pokrywka/48c15f4150499f9e545f86c5549a5951 to your computer and use it in GitHub Desktop.
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package $ivy | |
object `group::artifact:1` { | |
object `2` { | |
object `3` { | |
val exception = new Exception() | |
} | |
} | |
import $ivy.`group::artifact:1`.`2`.`3`.exception._ | |
printStackTrace() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that the above example "works" (have you noticed the amount of backticks? 😢 ), but:
does not