Summarized from Groovy Recipes, by Scott Davis, Automatically Including JARs in the ./groovy/lib Directory:
- Create
.groovy/lib
in your login directory
Uncomment the following line in ${GROOVY_HOME}/conf/groovy-starter.conf
load !{user.home}/.groovy/lib/*.jar
Copy the jars you want included to .groovy/lib
It appears that for Groovy 1.5 or later you get this by default (no need to edit the conf), just drop the jars in the /lib dir.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…