I have been fighting with Gradle (gradle-1.0-milestone-7) for over a day and am fairly frustrated, especially seeing what the solution ended up being.
I was using gradle-1.0-milestone-5 and just upgraded to gradle-1.0-milestone-7. I have been using the following repositories
repositories { maven {url: 'file:///C:/usr/repository/'} mavenCentral() maven {url: 'http://download.java.net/maven/2'} maven {url: 'http://maven.glassfish.org/content/repositories/eclipselink'}
maven {url: 'http://maven.glassfish.org/content/repositories/eclipselink'} maven {url: 'http://nexus.openqa.org/content/repositories/releases/'} maven {url: 'http://scala-tools.org/repo-releases'} maven {url: 'http://repository.jboss.org/nexus/content/groups/public-jboss/'} }
Then I keep getting this error
08:42:13.083 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':ch01:compileJava'08:42:13.094 [ERROR] [org.gradle.BuildExceptionReporter]08:42:13.099 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.08:42:13.104 [ERROR] [org.gradle.BuildExceptionReporter]08:42:13.108 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:08:42:13.112 [ERROR] [org.gradle.BuildExceptionReporter] Could not resolve all dependencies for configuration ':ch01:compile'.08:42:13.118 [ERROR] [org.gradle.BuildExceptionReporter] Cause: You must specify a URL for a Maven repository.The issue was so subtle… I removed the colon (:) and the issue was resolved.
This is what I now have:
repositories { mavenLocal() mavenCentral()
maven {url 'https://maven.java.net/content/groups/public/'} maven {url 'http://maven.glassfish.org/content/repositories/eclipselink'}
maven {url 'http://nexus.openqa.org/content/repositories/releases/'} maven {url 'http://scala-tools.org/repo-releases'} maven {url 'http://repository.jboss.org/nexus/content/groups/public-jboss/'} }

