How to get groovy grape script running

I noticed that this looks like a 10 second hit using a groovy script with Grape annotations in my OSX window. It's always like that? Can I make grapes in favor of its cache (the parameters are certainly already in the system in ~ / .groovy / grapes ...).

0
source share
2 answers

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

+2
source

~/.groovy/grapeConfig.xml? , doco, .

<ivysettings>
  <settings defaultResolver="downloadGrapes"/>
  <resolvers>
    <chain name="downloadGrapes">
      <filesystem name="cachedGrapes">
        <ivy pattern="${user.home}/.groovy/grapes/[organisation]/[module]/ivy-[revision].xml"/>
        <artifact pattern="${user.home}/.groovy/grapes/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"/>
      </filesystem>
      <!-- todo add 'endorsed groovy extensions' resolver here -->
      <ibiblio name="codehaus" root="http://repository.codehaus.org/" m2compatible="true"/>
      <ibiblio name="ibiblio" m2compatible="true"/>
      <ibiblio name="java.net2" root="http://download.java.net/maven/2/" m2compatible="true"/>
    </chain>
  </resolvers>
</ivysettings>
+1

Source: https://habr.com/ru/post/1762997/


All Articles