Hey all,

I'm using the groovy plugin and I've noticed that my groovy project
hangs for a fair while displaying "> Building > :compileJava" (which
seems strange for a pure groovy project). After investigating a
little, it appears to be ivy-related. Running with the -d flag there's
a fair amount of time spent in ivy (note the 9 second pause):

$ ./gradlew -d clean jar
....
14:57:05.622 [INFO]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] ::
loading settings :: url =
jar:file:/Users/user/.gradle/wrapper/dists/gradle-0.9.1/lib/ivy-2.2.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
14:57:05.622 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper]
setting 'ivy.settings.url' to
'jar:file:/Users/user/.gradle/wrapper/dists/gradle-0.9.1/lib/ivy-2.2.0.jar!/org/apache/ivy/core/settings/ivysettings.xml'
14:57:05.622 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper]
setting 'ivy.conf.url' to
'jar:file:/Users/user/.gradle/wrapper/dists/gradle-0.9.1/lib/ivy-2.2.0.jar!/org/apache/ivy/core/settings/ivysettings.xml'
14:57:14.888 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper]
setting 'ivy.settings.dir' to
'jar:file:/Users/user/.gradle/wrapper/dists/gradle-0.9.1/lib/ivy-2.2.0.jar!/org/apache/ivy/core/settings'
14:57:14.889 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper]
setting 'ivy.conf.dir' to
'jar:file:/Users/user/.gradle/wrapper/dists/gradle-0.9.1/lib/ivy-2.2.0.jar!/org/apache/ivy/core/settings'
....

In fact the whole build takes a half minute:

./gradlew clean jar
:clean
:compileJava UP-TO-DATE
:compileGroovy
:processResources
:classes
:jar

BUILD SUCCESSFUL

Total time: 32.465 secs

And I have 11 small files in my project:

find src/main | grep '\.groovy' | grep -v svn | wc -l
      11

Is this typical performance or purely an oddity relating to my
repositories/dependencies?

Cheers,
Merlyn

---------
My build.gradle fragment:

configurations {
    deployerJars
}

repositories {
    mavenCentral()
    mavenRepo urls:
['http://repository.jboss.org/nexus/content/groups/public-jboss']
}

dependencies {
    groovy 'org.codehaus.groovy:groovy:1.7.5'

    compile 'org.codehaus.groovy.modules.http-builder:http-builder:0.5.1'
    compile 'org.springframework:spring-context-support:2.5.6'
        compile 'org.twitter4j:twitter4j-core:2.1.3'
        compile 'org.hornetq:hornetq-core:2.1.2.Final'
        
        testCompile 'org.spockframework:spock-core:0.4-groovy-1.7'

    deployerJars "org.apache.maven.wagon:wagon-ssh:1.0-beta-2"
}

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

    http://xircles.codehaus.org/manage_email


Reply via email to