Download plugin via ivy fails in rc3


(crotwell) #1

I have a plugin, currently hosted at google code, with a jar and ivy xml file available for download. Under milestone9, I was able to download and use it with a build file that looks like this under milestone-9, but now it fails. I looked at the release notes for all of the rc releases, but didn’t see any breaking changes that would effect this. The error message/debug output is below. The odd thing is that I don’t see anything in the debug output that looks like gradle is even trying to download the ivy xml or jar over the net. Seems strange to declare gradle can’t resolve all dependencies without trying.

Philip

apply plugin: 'java'
apply plugin: 'macAppBundle'
  group = 'org.test'
version = '1.2'
  macAppBundle {
    mainClassName = "org.test.LabelDemo"
}
    buildscript {
    repositories {
        ivy {
            url "http://gradle-macappbundle.googlecode.com"
            artifactPattern 'http://gradle-macappbundle.googlecode.com/files/[module]-[revision].[ext]'
        }
    }
    dependencies {
        classpath 'edu.sc.seis:gradle-macappbundle:1.0.5'
    }
}
gradle --debug -C rebuild
createApp
09:08:07.140 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer@6d3f7281, org.gradle.logging.internal.slf4j.Slf4jLoggingConfigurer@6076ab2f, org.gradle.logging.internal.JavaUtilLoggingConfigurer@ee0cc23]
09:08:07.826 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer@6d3f7281, org.gradle.logging.internal.slf4j.Slf4jLoggingConfigurer@6076ab2f, org.gradle.logging.internal.JavaUtilLoggingConfigurer@ee0cc23]
09:08:07.826 [INFO] [org.gradle.BuildLogger] Starting Build
09:08:07.828 [DEBUG] [org.gradle.BuildLogger] Gradle user home: /Users/crotwell/.gradle
09:08:07.828 [DEBUG] [org.gradle.BuildLogger] Current dir: /Users/crotwell/dev/gradlePlugins/testDownload
09:08:07.831 [DEBUG] [org.gradle.BuildLogger] Settings file: null
09:08:07.832 [DEBUG] [org.gradle.BuildLogger] Build file: null
09:08:07.846 [DEBUG] [org.gradle.initialization.BuildSourceBuilder] Starting to build the build sources.
09:08:07.848 [DEBUG] [org.gradle.initialization.BuildSourceBuilder] Gradle source dir does not exist. We leave.
09:08:07.851 [DEBUG] [org.gradle.initialization.DefaultGradlePropertiesLoader] Found env project properties: []
09:08:07.852 [DEBUG] [org.gradle.initialization.DefaultGradlePropertiesLoader] Found system project properties: []
09:08:08.178 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer@6d3f7281, org.gradle.logging.internal.slf4j.Slf4jLoggingConfigurer@6076ab2f, org.gradle.logging.internal.JavaUtilLoggingConfigurer@ee0cc23]
09:08:08.184 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer@6d3f7281, org.gradle.logging.internal.slf4j.Slf4jLoggingConfigurer@6076ab2f, org.gradle.logging.internal.JavaUtilLoggingConfigurer@ee0cc23]
09:08:08.186 [DEBUG] [org.gradle.initialization.ScriptEvaluatingSettingsProcessor] Timing: Processing settings took: 0.333 secs
09:08:08.188 [INFO] [org.gradle.BuildLogger] Settings evaluated using empty settings script.
09:08:08.288 [DEBUG] [org.gradle.initialization.ProjectPropertySettingBuildLoader] Looking for project properties from: /Users/crotwell/dev/gradlePlugins/testDownload/gradle.properties
09:08:08.289 [DEBUG] [org.gradle.initialization.ProjectPropertySettingBuildLoader] project property file does not exists. We continue!
09:08:08.291 [INFO] [org.gradle.BuildLogger] Projects loaded. Root project using build file '/Users/crotwell/dev/gradlePlugins/testDownload/build.gradle'.
09:08:08.293 [INFO] [org.gradle.BuildLogger] Included projects: [root project 'testDownload']
09:08:08.296 [INFO] [org.gradle.configuration.BuildScriptProcessor] Evaluating root project 'testDownload' using build file '/Users/crotwell/dev/gradlePlugins/testDownload/build.gradle'.
09:08:08.307 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on buildscript class cache for build file '/Users/crotwell/dev/gradlePlugins/testDownload/build.gradle' (/Users/crotwell/.gradle/caches/1.0-rc-3/scripts/build_24lke4ph7070jnakc4iqfkplu/ProjectScript/buildscript).
09:08:08.322 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
09:08:08.325 [DEBUG] [org.gradle.cache.internal.DefaultPersistentDirectoryCache] Invalidating buildscript class cache for build file '/Users/crotwell/dev/gradlePlugins/testDownload/build.gradle' (/Users/crotwell/.gradle/caches/1.0-rc-3/scripts/build_24lke4ph7070jnakc4iqfkplu/ProjectScript/buildscript) as cache usage is set to rebuild.
09:08:08.328 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on buildscript class cache for build file '/Users/crotwell/dev/gradlePlugins/testDownload/build.gradle' (/Users/crotwell/.gradle/caches/1.0-rc-3/scripts/build_24lke4ph7070jnakc4iqfkplu/ProjectScript/buildscript).
09:08:08.330 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
09:08:08.346 [INFO] [org.gradle.groovy.scripts.internal.DefaultScriptCompilationHandler] Compiling build file '/Users/crotwell/dev/gradlePlugins/testDownload/build.gradle' using BuildScriptClasspathScriptTransformer.
09:08:09.151 [DEBUG] [org.gradle.groovy.scripts.internal.DefaultScriptCompilationHandler] Timing: Writing script to cache at /Users/crotwell/.gradle/caches/1.0-rc-3/scripts/build_24lke4ph7070jnakc4iqfkplu/ProjectScript/buildscript/classes took: 0.809 secs
09:08:09.153 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on buildscript class cache for build file '/Users/crotwell/dev/gradlePlugins/testDownload/build.gradle' (/Users/crotwell/.gradle/caches/1.0-rc-3/scripts/build_24lke4ph7070jnakc4iqfkplu/ProjectScript/buildscript).
09:08:09.155 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
09:08:09.315 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer@6d3f7281, org.gradle.logging.internal.slf4j.Slf4jLoggingConfigurer@6076ab2f, org.gradle.logging.internal.JavaUtilLoggingConfigurer@ee0cc23]
09:08:09.318 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultDependencyResolver] Resolving configuration ':classpath'
09:08:09.370 [DEBUG] [org.gradle.api.internal.externalresource.transport.http.JavaSystemPropertiesHttpProxySettings] Found java system property 'http.nonProxyHosts': local|*.local|169.254/16|*.169.254/16. Will ignore proxy settings for these hosts.
09:08:09.695 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'ivy.default.settings.dir' to 'jar:file:/seis/local/noArch/versions/gradle-1.0-rc-3/lib/ivy-2.2.0.jar!/org/apache/ivy/core/settings'
09:08:09.698 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'ivy.basedir' to '/Users/crotwell/dev/gradlePlugins/testDownload/.'
09:08:09.700 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'ivy.default.conf.dir' to 'jar:file:/seis/local/noArch/versions/gradle-1.0-rc-3/lib/ivy-2.2.0.jar!/org/apache/ivy/core/settings'
09:08:09.750 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.runtime.name' to 'Java(TM) SE Runtime Environment'
09:08:09.751 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'jna.platform.library.path' to '/usr/lib:/usr/lib'
09:08:09.752 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'sun.boot.library.path' to '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries'
09:08:09.753 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.vm.version' to '20.6-b01-415'
09:08:09.754 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'awt.nativeDoubleBuffering' to 'true'
09:08:09.755 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'gopherProxySet' to 'false'
09:08:09.756 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'mrj.build' to '11M3635'
09:08:09.757 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.vm.vendor' to 'Apple Inc.'
09:08:09.758 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.vendor.url' to 'http://www.apple.com/'
09:08:09.759 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'path.separator' to ':'
09:08:09.760 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.vm.name' to 'Java HotSpot(TM) 64-Bit Server VM'
09:08:09.761 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'file.encoding.pkg' to 'sun.io'
09:08:09.762 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'user.country' to 'US'
09:08:09.764 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'sun.java.launcher' to 'SUN_STANDARD'
09:08:09.765 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'sun.os.patch.level' to 'unknown'
09:08:09.767 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.vm.specification.name' to 'Java Virtual Machine Specification'
09:08:09.768 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'user.dir' to '/Users/crotwell/dev/gradlePlugins/testDownload'
09:08:09.769 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.runtime.version' to '1.6.0_31-b04-415-11M3635'
09:08:09.770 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.awt.graphicsenv' to 'apple.awt.CGraphicsEnvironment'
09:08:09.771 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.endorsed.dirs' to '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/endorsed'
09:08:09.772 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'os.arch' to 'x86_64'
09:08:09.774 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.io.tmpdir' to '/var/folders/vz/d61vgy2j1pj3mnfwryfk4sy00000gn/T/'
09:08:09.775 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'line.separator' to '
'
09:08:09.776 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'org.gradle.appname' to 'gradle'
09:08:09.777 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.vm.specification.vendor' to 'Sun Microsystems Inc.'
09:08:09.778 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'os.name' to 'Mac OS X'
09:08:09.779 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'jna.boot.library.path' to '/Users/crotwell/.gradle/jna'
09:08:09.780 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'sun.jnu.encoding' to 'MacRoman'
09:08:09.781 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.library.path' to '/seis/local/noArch/yourkit/bin/mac:/seis/local/macIntel/lib::.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java'
09:08:09.782 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.class.version' to '50.0'
09:08:09.784 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.specification.name' to 'Java Platform API Specification'
09:08:09.785 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'sun.management.compiler' to 'HotSpot 64-Bit Tiered Compilers'
09:08:09.786 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'os.version' to '10.7.3'
09:08:09.787 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'http.nonProxyHosts' to 'local|*.local|169.254/16|*.169.254/16'
09:08:09.790 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'user.home' to '/Users/crotwell'
09:08:09.797 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'user.timezone' to 'America/New_York'
09:08:09.798 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.awt.printerjob' to 'apple.awt.CPrinterJob'
09:08:09.799 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.specification.version' to '1.6'
09:08:09.800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'file.encoding' to 'MacRoman'
09:08:09.801 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'user.name' to 'crotwell'
09:08:09.802 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.class.path' to '/seis/local/noArch/versions/gradle-1.0-rc-3/lib/gradle-launcher-1.0-rc-3.jar'
09:08:09.803 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.vm.specification.version' to '1.0'
09:08:09.804 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'sun.arch.data.model' to '64'
09:08:09.805 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.home' to '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home'
09:08:09.809 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'sun.java.command' to 'org.gradle.launcher.GradleMain --debug -C rebuild createApp'
09:08:09.810 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.specification.vendor' to 'Sun Microsystems Inc.'
09:08:09.811 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'user.language' to 'en'
09:08:09.813 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'awt.toolkit' to 'apple.awt.CToolkit'
09:08:09.814 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.vm.info' to 'mixed mode'
09:08:09.815 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.version' to '1.6.0_31'
09:08:09.816 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.ext.dirs' to '/Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext'
09:08:09.817 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'sun.boot.class.path' to '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsfd.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/laf.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/sunrsasign.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar'
09:08:09.818 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.vendor' to 'Apple Inc.'
09:08:09.819 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'file.separator' to '/'
09:08:09.820 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'java.vendor.url.bug' to 'http://bugreport.apple.com/'
09:08:09.822 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'sun.io.unicode.encoding' to 'UnicodeLittle'
09:08:09.823 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'sun.cpu.endian' to 'little'
09:08:09.824 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'mrj.version' to '1070.1.6.0_31-415'
09:08:09.825 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'socksNonProxyHosts' to 'local|*.local|169.254/16|*.169.254/16'
09:08:09.826 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'ftp.nonProxyHosts' to 'local|*.local|169.254/16|*.169.254/16'
09:08:09.827 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'sun.cpu.isalist' to ''
09:08:09.828 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'ivy.cache.dir' to '/Users/crotwell/.gradle/caches/artifacts-13/ivy'
09:08:09.830 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] setting 'ivy.log.modules.in.use' to 'false'
09:08:09.888 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder] Visiting configuration #testDownload;unspecified(classpath).
09:08:09.893 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder] Visiting dependency #testDownload;unspecified(classpath) -> edu.sc.seis#gradle-macappbundle;1.0.5([default])
09:08:09.896 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder] Selecting new module version edu.sc.seis#gradle-macappbundle;1.0.5
09:08:09.897 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverChain] Attempting to resolve module 'edu.sc.seis#gradle-macappbundle;1.0.5' using repositories '[ivy]'
09:08:09.901 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on artifact cache (/Users/crotwell/.gradle/caches/artifacts-13).
09:08:09.903 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
09:08:09.915 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Opening cache dynamic-revisions.bin (/Users/crotwell/.gradle/caches/artifacts-13/dynamic-revisions.bin)
09:08:09.929 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Opening cache module-metadata.bin (/Users/crotwell/.gradle/caches/artifacts-13/module-metadata.bin)
09:08:09.970 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] post 1.3 ivy file: using exact as default matcher
09:08:09.977 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleVersionRepository] Using cached module metadata for module 'edu.sc.seis#gradle-macappbundle;1.0.5' in 'ivy'
09:08:09.980 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverChain] Using module 'edu.sc.seis#gradle-macappbundle;1.0.5' from repository 'ivy'
09:08:09.991 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder] Visiting configuration edu.sc.seis#gradle-macappbundle;1.0.5(default).
09:08:09.998 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder] Attaching #testDownload;unspecified(classpath) to its parents.
09:08:09.999 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder] Attaching edu.sc.seis#gradle-macappbundle;1.0.5(groovy) to its parents.
09:08:10.000 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder] Attaching edu.sc.seis#gradle-macappbundle;1.0.5(compile) to its parents.
09:08:10.001 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder] Attaching edu.sc.seis#gradle-macappbundle;1.0.5(runtime) to its parents.
09:08:10.002 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder] Attaching edu.sc.seis#gradle-macappbundle;1.0.5(default) to its parents.
09:08:10.007 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache dynamic-revisions.bin (/Users/crotwell/.gradle/caches/artifacts-13/dynamic-revisions.bin)
09:08:10.008 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-metadata.bin (/Users/crotwell/.gradle/caches/artifacts-13/module-metadata.bin)
09:08:10.009 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on artifact cache (/Users/crotwell/.gradle/caches/artifacts-13).
09:08:10.018 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverChain] Attempting to download edu.sc.seis#gradle-macappbundle;1.0.5!gradle-macappbundle.jar using repository 'ivy'
09:08:10.021 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on artifact cache (/Users/crotwell/.gradle/caches/artifacts-13).
09:08:10.021 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
09:08:10.022 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Opening cache artifact-at-repository.bin (/Users/crotwell/.gradle/caches/artifacts-13/artifact-at-repository.bin)
09:08:10.027 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleVersionRepository] Detected non-existence of artifact 'edu.sc.seis#gradle-macappbundle;1.0.5!gradle-macappbundle.jar' in resolver cache
09:08:10.030 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache artifact-at-repository.bin (/Users/crotwell/.gradle/caches/artifacts-13/artifact-at-repository.bin)
09:08:10.030 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on artifact cache (/Users/crotwell/.gradle/caches/artifacts-13).
09:08:10.033 [DEBUG] [org.gradle.configuration.BuildScriptProcessor] Timing: Running the build script took 1.736 secs
09:08:10.046 [ERROR] [org.gradle.BuildExceptionReporter]
 09:08:10.048 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
09:08:10.049 [ERROR] [org.gradle.BuildExceptionReporter]
 09:08:10.050 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
09:08:10.051 [ERROR] [org.gradle.BuildExceptionReporter] Could not resolve all dependencies for configuration ':classpath'.
09:08:10.054 [ERROR] [org.gradle.BuildExceptionReporter] > Artifact 'edu.sc.seis:gradle-macappbundle:1.0.5@jar' not found.
09:08:10.055 [ERROR] [org.gradle.BuildExceptionReporter]
 09:08:10.056 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
09:08:10.058 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':classpath'.
09:08:10.059 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDependencyResolver.wrapException(ErrorHandlingArtifactDependencyResolver.java:47)
09:08:10.060 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDependencyResolver.access$000(ErrorHandlingArtifactDependencyResolver.java:26)
09:08:10.061 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDependencyResolver$ErrorHandlingResolvedConfiguration.getFiles(ErrorHandlingArtifactDependencyResolver.java:80)
09:08:10.062 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:460)
09:08:10.063 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getFiles(DefaultConfiguration.java:203)
09:08:10.064 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getFiles(Unknown Source)
09:08:10.065 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.initialization.DefaultScriptHandler.updateClassPath(DefaultScriptHandler.java:36)
09:08:10.066 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:118)
09:08:10.067 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.configuration.BuildScriptProcessor.evaluate(BuildScriptProcessor.java:38)
09:08:10.068 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.configuration.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:43)
09:08:10.069 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:462)
09:08:10.070 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:74)
09:08:10.070 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.configuration.ProjectEvaluationConfigurer.execute(ProjectEvaluationConfigurer.java:23)
09:08:10.071 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.configuration.ProjectEvaluationConfigurer.execute(ProjectEvaluationConfigurer.java:21)
09:08:10.072 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.configuration.DefaultBuildConfigurer$1.execute(DefaultBuildConfigurer.java:38)
09:08:10.073 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.configuration.DefaultBuildConfigurer$1.execute(DefaultBuildConfigurer.java:35)
09:08:10.074 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.project.AbstractProject.configure(AbstractProject.java:438)
09:08:10.075 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.project.AbstractProject.allprojects(AbstractProject.java:433)
09:08:10.076 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)
09:08:10.077 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:139)
09:08:10.078 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:110)
09:08:10.079 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:78)
09:08:10.080 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:42)
09:08:10.081 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:28)
09:08:10.082 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:201)
09:08:10.083 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:174)
09:08:10.083 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:170)
09:08:10.084 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:139)
09:08:10.085 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionReportingAction.java:31)
09:08:10.086 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionReportingAction.java:20)
09:08:10.086 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.launcher.Main.doAction(Main.java:48)
09:08:10.087 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.launcher.exec.EntryPoint.run(EntryPoint.java:45)
09:08:10.089 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.launcher.Main.main(Main.java:39)
09:08:10.089 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)
09:08:10.090 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:32)
09:08:10.091 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
09:08:10.092 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ArtifactNotFoundException: Artifact 'edu.sc.seis:gradle-macappbundle:1.0.5@jar' not found.
09:08:10.093 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverChain$ModuleVersionRepositoryBackedArtifactResolver.resolve(UserResolverChain.java:168)
09:08:10.094 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.LazyDependencyToModuleResolver$ErrorHandlingArtifactResolver.resolve(LazyDependencyToModuleResolver.java:59)
09:08:10.095 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.ivyservice.ResolvedArtifactFactory$1$1.create(ResolvedArtifactFactory.java:39)
09:08:10.095 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.ivyservice.ResolvedArtifactFactory$1$1.create(ResolvedArtifactFactory.java:37)
09:08:10.096 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:126)
09:08:10.097 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDirectoryStore.java:99)
09:08:10.098 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManager.useCache(DefaultCacheLockingManager.java:49)
09:08:10.099 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.ivyservice.ResolvedArtifactFactory$1.get(ResolvedArtifactFactory.java:37)
09:08:10.099 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.DefaultResolvedArtifact.getFile(DefaultResolvedArtifact.java:107)
09:08:10.100 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactFileResolver.getFile(DefaultLenientConfiguration.java:137)
09:08:10.101 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration.getFiles(DefaultLenientConfiguration.java:115)
09:08:10.102 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration.getFilesStrict(DefaultLenientConfiguration.java:98)
09:08:10.103 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.ivyservice.DefaultResolvedConfiguration.getFiles(DefaultResolvedConfiguration.java:45)
09:08:10.104 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyResolver$1.getFiles(SelfResolvingDependencyResolver.java:56)
09:08:10.104 [ERROR] [org.gradle.BuildExceptionReporter]
at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDependencyResolver$ErrorHandlingResolvedConfiguration.getFiles(ErrorHandlingArtifactDependencyResolver.java:78)
09:08:10.105 [ERROR] [org.gradle.BuildExceptionReporter]
... 33 more
09:08:10.106 [ERROR] [org.gradle.BuildExceptionReporter]
 09:08:10.107 [LIFECYCLE] [org.gradle.BuildResultLogger]
 09:08:10.108 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
09:08:10.109 [LIFECYCLE] [org.gradle.BuildResultLogger]
 09:08:10.109 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 3.392 secs
09:08:10.112 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on buildscript class cache for build file '/Users/crotwell/dev/gradlePlugins/testDownload/build.gradle' (/Users/crotwell/.gradle/caches/1.0-rc-3/scripts/build_24lke4ph7070jnakc4iqfkplu/ProjectScript/buildscript).
09:08:10.119 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer@6d3f7281, org.gradle.logging.internal.slf4j.Slf4jLoggingConfigurer@6076ab2f, org.gradle.logging.internal.JavaUtilLoggingConfigurer@ee0cc23]

------------------------


(crotwell) #2

A little more information, I did a “rm -r ~/.gradle” to get a clean slate and then tried again. Gradle 1.0rc3 successfully got the ivy xml file

09:14:36.898 [DEBUG] [org.gradle.api.internal.externalresource.transport.http.HttpResourceAccessor] Constructing external resource: http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.xml
09:14:36.899 [DEBUG] [org.gradle.api.internal.externalresource.transport.http.HttpClientHelper] Performing HTTP GET: http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.xml
09:14:36.900 [DEBUG] [org.apache.http.impl.conn.SingleClientConnManager] Get connection for route HttpRoute[{}->http://gradle-macappbundle.googlecode.com]
09:14:36.901 [DEBUG] [org.apache.http.impl.client.ContentEncodingHttpClient] Stale connection check
09:14:36.903 [DEBUG] [org.apache.http.client.protocol.RequestAddCookies] CookieSpec selected: best-match
09:14:36.904 [DEBUG] [org.apache.http.client.protocol.RequestAuthCache] Auth cache not set in the context
09:14:36.905 [DEBUG] [org.apache.http.impl.client.ContentEncodingHttpClient] Attempt 1 to execute request
09:14:36.905 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Sending request: GET /files/gradle-macappbundle-1.0.5.xml HTTP/1.1
09:14:36.906 [DEBUG] [org.apache.http.headers] >> GET /files/gradle-macappbundle-1.0.5.xml HTTP/1.1
09:14:36.906 [DEBUG] [org.apache.http.headers] >> User-Agent: Gradle/1.0-rc-3
09:14:36.907 [DEBUG] [org.apache.http.headers] >> Host: gradle-macappbundle.googlecode.com
09:14:36.908 [DEBUG] [org.apache.http.headers] >> Connection: Keep-Alive
09:14:36.908 [DEBUG] [org.apache.http.headers] >> Accept-Encoding: gzip,deflate
09:14:37.237 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Receiving response: HTTP/1.1 200 OK
09:14:37.239 [DEBUG] [org.apache.http.headers] << HTTP/1.1 200 OK
09:14:37.240 [DEBUG] [org.apache.http.headers] << Content-Length: 1280
09:14:37.241 [DEBUG] [org.apache.http.headers] << Content-Type: application/xml; charset=us-ascii
09:14:37.243 [DEBUG] [org.apache.http.headers] << Content-Disposition: attachment; filename="gradle-macappbundle-1.0.5.xml"
09:14:37.244 [DEBUG] [org.apache.http.headers] << Accept-Ranges: bytes
09:14:37.244 [DEBUG] [org.apache.http.headers] << Date: Tue, 08 May 2012 13:14:37 GMT
09:14:37.245 [DEBUG] [org.apache.http.headers] << Last-Modified: Mon, 02 Apr 2012 15:53:26 GMT
09:14:37.246 [DEBUG] [org.apache.http.headers] << Expires: Tue, 15 May 2012 13:14:37 GMT
09:14:37.247 [DEBUG] [org.apache.http.headers] << Cache-Control: public, max-age=604800
09:14:37.248 [DEBUG] [org.apache.http.headers] << Server: DFE/largefile
09:14:37.249 [DEBUG] [org.apache.http.impl.client.ContentEncodingHttpClient] Connection can be kept alive indefinitely
09:14:37.256 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper]
ivy: found md file for edu.sc.seis#gradle-macappbundle;1.0.5
09:14:37.256 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper]
 => Http GET Resource: http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.xml (1.0.5)
09:14:37.257 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper]
parser = ivy parser
09:14:37.258 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] downloading Http GET Resource: http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.xml ...
09:14:37.259 [DEBUG] [org.gradle.api.internal.artifacts.repositories.ExternalResourceResolver] Downloading http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.xml to /Users/crotwell/.gradle/caches/artifacts-13/filestore/temp/7223683819391700811.part
09:14:37.261 [DEBUG] [org.gradle.api.internal.externalresource.transport.http.HttpResponseResource] Attempting to download resource http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.xml.
09:14:37.266 [LIFECYCLE] [org.gradle.api.internal.artifacts.repositories.transport.RepositoryTransport] Download http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.xml
09:14:37.268 [DEBUG] [org.apache.http.impl.conn.SingleClientConnManager] Releasing connection org.apache.http.impl.conn.SingleClientConnManager$ConnAdapter@f0c0ef2

but then it fails with a 404 on the jar:

09:14:37.583 [DEBUG] [org.gradle.api.internal.externalresource.transfer.DefaultCacheAwareExternalResourceAccessor] Constructing external resource: http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.jar
09:14:37.600 [DEBUG] [org.gradle.api.internal.externalresource.transport.http.HttpResourceAccessor] Constructing external resource metadata: http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.jar
09:14:37.600 [DEBUG] [org.gradle.api.internal.externalresource.transport.http.HttpClientHelper] Performing HTTP HEAD: http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.jar
09:14:37.601 [DEBUG] [org.apache.http.impl.conn.SingleClientConnManager] Get connection for route HttpRoute[{}->http://gradle-macappbundle.googlecode.com]
09:14:37.602 [DEBUG] [org.apache.http.impl.client.ContentEncodingHttpClient] Stale connection check
09:14:37.604 [DEBUG] [org.apache.http.client.protocol.RequestAddCookies] CookieSpec selected: best-match
09:14:37.604 [DEBUG] [org.apache.http.client.protocol.RequestAuthCache] Auth cache not set in the context
09:14:37.605 [DEBUG] [org.apache.http.impl.client.ContentEncodingHttpClient] Attempt 1 to execute request
09:14:37.606 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Sending request: HEAD /files/gradle-macappbundle-1.0.5.jar HTTP/1.1
09:14:37.606 [DEBUG] [org.apache.http.headers] >> HEAD /files/gradle-macappbundle-1.0.5.jar HTTP/1.1
09:14:37.607 [DEBUG] [org.apache.http.headers] >> User-Agent: Gradle/1.0-rc-3
09:14:37.608 [DEBUG] [org.apache.http.headers] >> Host: gradle-macappbundle.googlecode.com
09:14:37.608 [DEBUG] [org.apache.http.headers] >> Connection: Keep-Alive
09:14:37.609 [DEBUG] [org.apache.http.headers] >> Accept-Encoding: gzip,deflate
09:14:37.661 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Receiving response: HTTP/1.1 404 Not Found
09:14:37.662 [DEBUG] [org.apache.http.headers] << HTTP/1.1 404 Not Found
09:14:37.663 [DEBUG] [org.apache.http.headers] << Content-Type: text/html; charset=UTF-8
09:14:37.664 [DEBUG] [org.apache.http.headers] << Set-Cookie: PREF=ID=6b8c83cc408b8d36:TM=1336482877:LM=1336482877:S=waUzaPlGAGZSh2T2; expires=Thu, 08-May-2014 13:14:37 GMT; path=/; domain=gradle-macappbundle.googlecode.com
09:14:37.665 [DEBUG] [org.apache.http.headers] << X-Content-Type-Options: nosniff
09:14:37.665 [DEBUG] [org.apache.http.headers] << Date: Tue, 08 May 2012 13:14:37 GMT
09:14:37.666 [DEBUG] [org.apache.http.headers] << Server: codesite_downloads
09:14:37.667 [DEBUG] [org.apache.http.headers] << Content-Length: 966
09:14:37.668 [DEBUG] [org.apache.http.headers] << X-XSS-Protection: 1; mode=block
09:14:37.668 [DEBUG] [org.apache.http.headers] << X-Frame-Options: SAMEORIGIN
09:14:37.676 [DEBUG] [org.apache.http.client.protocol.ResponseProcessCookies] Cookie accepted: "[version: 0][name: PREF][value: ID=6b8c83cc408b8d36:TM=1336482877:LM=1336482877:S=waUzaPlGAGZSh2T2][domain: gradle-macappbundle.googlecode.com][path: /][expiry: Thu May 08 09:14:37 EDT 2014]".
 09:14:37.676 [DEBUG] [org.apache.http.impl.client.ContentEncodingHttpClient] Connection can be kept alive indefinitely
09:14:37.677 [DEBUG] [org.apache.http.impl.conn.SingleClientConnManager] Releasing connection org.apache.http.impl.conn.SingleClientConnManager$ConnAdapter@1544e44
09:14:37.677 [INFO] [org.gradle.api.internal.externalresource.transport.http.HttpClientHelper] Resource missing. [HTTP HEAD: http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.jar]
09:14:37.678 [DEBUG] [org.gradle.api.internal.artifacts.repositories.ExternalResourceResolver] Resource not reachable for edu.sc.seis#gradle-macappbundle;1.0.5: res=MissingResource: http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.jar

But if I paste the URL above into my browser, it downloads fine. http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.jar

Weird.


(crotwell) #3

Last clue in case it helps. Here is the corresponding log output for milestone9 doing the download after a ‘rm -r ~/.gradle’. For some reason milestone9 doesn’t get the 404 and so is able to download the jar without issue.

10:07:52.839 [DEBUG] [org.gradle.api.internal.artifacts.repositories.transport.http.HttpResourceCollection] Performing HTTP GET: http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.jar
10:07:52.840 [DEBUG] [org.apache.http.impl.conn.SingleClientConnManager] Get connection for route HttpRoute[{}->http://gradle-macappbundle.googlecode.com]
10:07:52.841 [DEBUG] [org.apache.http.impl.client.ContentEncodingHttpClient] Stale connection check
10:07:52.843 [DEBUG] [org.apache.http.client.protocol.RequestAddCookies] CookieSpec selected: best-match
10:07:52.844 [DEBUG] [org.apache.http.client.protocol.RequestAddCookies] Cookie [version: 0][name: PREF][value: ID=3c58f993d4239aae:TM=1336486072:LM=1336486072:S=NsP2jCTdd1ToULIR][domain: gradle-macappbundle.googlecode.com][path: /][expiry: Thu May 08 10:07:52 EDT 2014] match [gradle-macappbundle.googlecode.com:80/files/gradle-macappbundle-1.0.5.jar]
10:07:52.845 [DEBUG] [org.apache.http.client.protocol.RequestAuthCache] Auth cache not set in the context
10:07:52.846 [DEBUG] [org.apache.http.impl.client.ContentEncodingHttpClient] Attempt 1 to execute request
10:07:52.846 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Sending request: GET /files/gradle-macappbundle-1.0.5.jar HTTP/1.1
10:07:52.847 [DEBUG] [org.apache.http.headers] >> GET /files/gradle-macappbundle-1.0.5.jar HTTP/1.1
10:07:52.847 [DEBUG] [org.apache.http.headers] >> User-Agent: Gradle/1.0-milestone-9
10:07:52.848 [DEBUG] [org.apache.http.headers] >> Host: gradle-macappbundle.googlecode.com
10:07:52.849 [DEBUG] [org.apache.http.headers] >> Connection: Keep-Alive
10:07:52.849 [DEBUG] [org.apache.http.headers] >> Cookie: PREF=ID=3c58f993d4239aae:TM=1336486072:LM=1336486072:S=NsP2jCTdd1ToULIR
10:07:52.850 [DEBUG] [org.apache.http.headers] >> Cookie2: $Version=1
10:07:52.851 [DEBUG] [org.apache.http.headers] >> Accept-Encoding: gzip,deflate
10:07:52.909 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Receiving response: HTTP/1.1 200 OK
10:07:52.910 [DEBUG] [org.apache.http.headers] << HTTP/1.1 200 OK
10:07:52.910 [DEBUG] [org.apache.http.headers] << Content-Length: 164076
10:07:52.911 [DEBUG] [org.apache.http.headers] << Content-Type: application/x-java-archive
10:07:52.912 [DEBUG] [org.apache.http.headers] << Content-Disposition: attachment; filename="gradle-macappbundle-1.0.5.jar"
10:07:52.913 [DEBUG] [org.apache.http.headers] << Accept-Ranges: bytes
10:07:52.914 [DEBUG] [org.apache.http.headers] << Date: Tue, 08 May 2012 13:27:01 GMT
10:07:52.914 [DEBUG] [org.apache.http.headers] << Last-Modified: Mon, 02 Apr 2012 15:52:59 GMT
10:07:52.915 [DEBUG] [org.apache.http.headers] << Expires: Tue, 15 May 2012 13:27:01 GMT
10:07:52.916 [DEBUG] [org.apache.http.headers] << Server: DFE/largefile
10:07:52.916 [DEBUG] [org.apache.http.headers] << Cache-Control: public, max-age=604800
10:07:52.917 [DEBUG] [org.apache.http.headers] << Age: 2451
10:07:52.918 [DEBUG] [org.apache.http.impl.client.ContentEncodingHttpClient] Connection can be kept alive indefinitely
10:07:52.918 [INFO] [org.gradle.api.internal.artifacts.repositories.transport.http.HttpResourceCollection] Resource found. [HTTP GET: http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.jar]
10:07:52.919 [INFO] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] downloading Http GET Resource: http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.jar ...
10:07:52.920 [DEBUG] [org.gradle.api.internal.artifacts.repositories.ResourceCollectionResolver] Downloading http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.jar to /Users/crotwell/.gradle/caches/artifacts-8/filestore/temp/6507766493878228864.part
10:07:52.920 [DEBUG] [org.gradle.api.internal.artifacts.repositories.transport.http.HttpResponseResource] Attempting to download resource http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.jar.
10:07:52.921 [LIFECYCLE] [org.gradle.api.internal.artifacts.repositories.transport.RepositoryTransport] Download http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.5.jar
10:07:53.928 [DEBUG] [org.apache.http.impl.conn.SingleClientConnManager] Releasing connection org.apache.http.impl.conn.SingleClientConnManager$ConnAdapter@639d0cf0
10:07:53.941 [INFO] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper]
[SUCCESSFUL ] edu.sc.seis#gradle-macappbundle;1.0.5!gradle-macappbundle.jar (1423ms)

(crotwell) #4

Really the last comment, the difference seems to be that rc3 does HEAD while mileston9 does GET. Why googlecode responds with a 404 to HEAD and a 200 to GET is beyond me, but…

It makes sense to me that you would do a HEAD when you are trying to see if a dependency is up to date, but for getting it the very first time it seems like you might as well do a GET.

…really wishing for the gradle plugin hosting service on the roadmap to become a reality!

Philip


(Luke Daley) #5

This is GRADLE-2124.

Bascially, Google Code breaks HTTP spec here and doesn’t support 404 request all of the time. If you rerun the build with ‘–refresh-dependencies’ it might work because sometimes Google Code with support the HEAD request.

This is the Google Code issue: http://code.google.com/p/support/issues/detail?id=660

We are still pushing them to fix it, but we may end up putting a specific Google Code workaround in place.