I have an Ammonite Script that I want to deliver in a JAR.
In another project I want to use this Script - but so far with no success.
I tried according to the documentation (sol_local_build.sc
):
import $ivy.`mycompany:myproject_2.12:2.1.0-SNAPSHOT`, local_build
@main
def doit():Unit =
println(local_build.curl("http://localhost:8080"))
local_build.sc
is in the Script I want to use.
This is the exception I get:
sol_local_build.sc:2: '.' expected but eof found.
^
For completeness, I could solve my problem as follows:
ammonite.ops
)