How do you configure GroovyConsole so I don't have to import libraries at startup?

前端 未结 5 1901
长发绾君心
长发绾君心 2021-02-06 04:44

I have a groovy script that uses a third party library. Each time I open the application and attempt to run my script I have to import the proper library.

I would lik

5条回答
  •  清歌不尽
    2021-02-06 05:24

    If you just want to add the JARs to the classpath, copy (or symlink) them to ~/.groovy/lib (or %USER_HOME%/.groovy/lib on Windows).

    If you want the actual import statements to run every time Groovy Console starts, edit the groovy-starter.conf file as suggested by Squelsh.

提交回复
热议问题