Ok I hacked up a solution. There really should be a better way... Thank
you :)

deps.sh

    #!/bin/bash
    if [ -d lib ]; then
       rm -rf lib
    fi
    mkdir lib

    cd lib
    NAMES=`find ~/.gradle/cache -name \*.jar`
    for NAME in $NAMES; do
       ln -s $NAME .
    done

and my build.gradle becomes

    apply plugin: 'groovy'
    
    /*
    repositories {
       mavenCentral()
    }
    */

    dependencies {
      /*
      groovy group: 'org.codehaus.groovy', name: 'groovy', version:
'1.7.0'
      groovy group: 'org.hibernate', name: 'hibernate-core', version:
'3.3.2.GA'
      groovy group: 'org.hibernate', name: 'hibernate-annotations',
version: '3.4.0.GA'
      groovy group: 'org.slf4j', name: 'slf4j-jdk14', version: '1.6.0'
      groovy group: 'org.jasypt', name: 'jasypt', version: '1.6'
      groovy group: 'org.codehaus.groovy.modules.http-builder', name:
'http-builder', version:     '0.5.0'
      groovy group: 'net.sourceforge.htmlunit', name: 'htmlunit',
version: '2.7'
      testCompile group: 'junit', name: 'junit', version: '4.7'  
      */
      groovy fileTree(dir: 'lib', include: '*.jar')
    }



On Thu, 2010-06-10 at 16:28 -0500, Misha Koshelev wrote:
> Sorry - this is probably a simple question...
> 
> Is there any way to use cached Ivy repos for Gradle?
> 
> It takes ~30 secs every time I do gradle :test and most is spent in Ivy
> per running with -d option
> 
> Thank you!
> Misha



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to