Ammonite REPL: How to import managed dependencies (and JAR files, too)
Briefly

If you want to import a managed dependency into the Ammonite REPL, the solution is to use its import $ivy syntax: import $ivy.`dev.zio::zio:2.0.22`. Here's another example of how to import the sttp library: import $ivy.`com.softwaremill.sttp.client3::core::3.7.2`.
If you want to load a JAR file into the Ammonite REPL, use this syntax: import $cp.foo.`simpletest_3.0.0-0.2.0.jar`. That example assumes that you have a JAR file named simpletest_3.0.0-0.2.0.jar in the current directory.
Read at Alvinalexander
[
add
]
[
|
|
]