如何让groovy葡萄脚本启动速度更快 [英] How to get groovy grape script startup going faster

查看:195
本文介绍了如何让groovy葡萄脚本启动速度更快的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到在我的OSX盒子上使用Grope注释的10秒钟命中。这总是这样吗?我可以让葡萄青睐它的缓存(依赖关系 肯定已经在〜/ .groovy / grapes的系统中了......)。

I've noticed there is like a 10 second hit using a groovy script with Grape annotations on my OSX box. Is it always this way? Can I make grape favor its cache (the depedencies are definitely already on the system in ~/.groovy/grapes...).

推荐答案

一些库(特别是httpbuilder)在其依赖项中使用版本范围。这里有一篇其中描述如何在您的grapeconfig.xml文件中增加此版本的TTL检查。

Some libraries (notably httpbuilder) use version ranges in their dependencies. There is a post here which describes how to increase the TTL for this version check in your grapeconfig.xml file.

这篇关于如何让groovy葡萄脚本启动速度更快的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆