Is it possible to install somewhere jar-files to use them in Scriptrunner?
My example: I want to use HTMLUnit in my groovy script so that it'll be possible to write smth like
import com.gargoylesoftware.htmlunit.*; import com.gargoylesoftware.htmlunit.html.*;
Or get classes with Grab.
Where should I upload files from that library? Or that's not correct?
Thanks for your attention.
Hi @Tatyana Dakukina , yeah I'm using @Grab. If the dependency is not downloaded automatically, you need to install it under maven dependencies on your Server. Usually (~/.m2) folder.
You can use mvn install:install-file command (https://intellipaat.com/community/6786/how-to-add-local-jar-files-to-a-maven-project).
I'm using following code and it works smoothly:)
import static com.xlson.groovycsv.CsvParser.parseCsv
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events