one question! in a script `.main.kts` let’s suppos...
# scripting
g
one question! in a script
.main.kts
let’s suppose i have a library that i want to use, and i have it in my maven local.. how can i use it with these annotations?
Copy code
@file:Repository("path to maven local?")
@file:DependsOn("org.mylib:mylibtest:0.0.1-SNAPSHOT")
l
@gianluz Did you try
file:///~.m2/
?
g
yes like that i’ve tried and works.. but i was wondering if there is a way to recognise the maven local and use the common pattern
groupId:artifactId:version
i
The main-kts uses ivy library for resolving (mainly due to the binaries size), and ivy uses different path for the local cache.