Hi I just added a new ivy xml file named "gradle-macappbundle-1.0.3.xml", which matches the url gradle was trying without specifying an ivyPattern, and gradle now successfully downloads the jar. Hopefully this will allow you to use the plugin.
Philip On Fri, Feb 24, 2012 at 9:23 AM, Philip Crotwell <[email protected]> wrote: > Hi > > This might be related to > http://forums.gradle.org/gradle/topics/http_status_code_403_stops_ivy_resolver > > I have also just put up a ivy.xml file to see if that helps, but I am > getting an error as well. > The ivy file url is: > http://gradle-macappbundle.googlecode.com/files/ivy-1.0.3.xml > > For just this simple build file: > > buildscript { > repositories { > ivy { > ivyPattern > 'http://gradle-macappbundle.googlecode.com/files/ivy-[revision].xml' > artifactPattern > 'http://gradle-macappbundle.googlecode.com/files/[module]-[revision].[ext]' > } > } > dependencies { > classpath 'edu.sc.seis:gradle-macappbundle:1.0.3' > } > } > > I get a fail, see below. This ivyPattern seems right to me, but I am > getting an extra "/" in the url, ie instead of "ivy-1.0.3.xml" the url > contains "ivy-/1.0.3.xml". Is this a bug? > > Also, gradle seems to try the correct url for the jar, which fails. > But if I paste the URL into my browser, it downloads fine??? > > Sorry it is so challenging to get my plugin, I might have to find a > more standard place to deploy it to as I don't think I can create > subdirectories easily at googlecode. > > Philip > > > gradle -i --refresh dependencies > Starting Build > Settings evaluated using empty settings file. > Projects loaded. Root project using build file > '/Users/crotwell/dev/gradlePlugins/testDownload/build.gradle'. > Included projects: [root project 'testDownload'] > Evaluating root project 'testDownload' using build file > '/Users/crotwell/dev/gradlePlugins/testDownload/build.gradle'. > Compiling build file > '/Users/crotwell/dev/gradlePlugins/testDownload/build.gradle' using > BuildScriptClasspathScriptTransformer. > Resource missing. [HTTP GET: > http://gradle-macappbundle.googlecode.com/files/ivy-/1.0.3.xml] > Resource missing. [HTTP HEAD: > http://gradle-macappbundle.googlecode.com/files/gradle-macappbundle-1.0.3.jar] > > FAILURE: Build failed with an exception. > > * What went wrong: > Could not resolve all dependencies for configuration ':classpath'. >> Could not find group:edu.sc.seis, module:gradle-macappbundle, version:1.0.3. > Required by: > :testDownload:unspecified > > * Try: > Run with --stacktrace option to get the stack trace. Run with --debug > option to get more log output. > > BUILD FAILED > > Total time: 4.056 secs > > gradle --version > > ------------------------------------------------------------ > Gradle 1.0-milestone-8a > ------------------------------------------------------------ > > Gradle build time: Monday, February 20, 2012 4:00:18 PM UTC > Groovy: 1.8.4 > Ant: Apache Ant(TM) version 1.8.2 compiled on December 20 2010 > Ivy: 2.2.0 > JVM: 1.6.0_29 (Apple Inc. 20.4-b02-402) > OS: Mac OS X 10.7.3 x86_64 --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
