Disclaimer: I'm pretty new to Gradle.
I am trying to create my project using Gradle (1.0-rc1), using the snapshot dependency on the Maven artifact.
But when I try to resolve dependencies using gradle --info dependencies
, I get the following error:
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':dependencies'. > Could not resolve all dependencies for configuration ':compile'. > Could not resolve group:com.l2fprod, module:l2fprod-common-all, version:7.3. Required by: :test:unspecified > org.valkyriercp:valkyrie-rcp-core:1.1-SNAPSHOT > Could not HEAD 'https://raw.github.com/Ekito/maven-repo/master/ \ snapshots/com/l2fprod/l2fprod-common-all/7.3/l2fprod-common-all-7.3.jar'. > Could not resolve group:org.valkyriercp, module:valkyrie-rcp-resources, version:1.1-SNAPSHOT. Required by: :test:unspecified > org.valkyriercp:valkyrie-rcp-core:1.1-SNAPSHOT > Could not resolve group:org.valkyriercp, module:valkyrie-rcp, version:1.1-SNAPSHOT. > Could not HEAD 'https://raw.github.com/Ekito/maven-repo/master/ \ snapshots/org/valkyriercp/valkyrie-rcp/1.1-SNAPSHOT \ /valkyrie-rcp-1.1-SNAPSHOT.jar'.
But the Maven valkyrie-rcp
artifact is not a flag, but pom is the parent module of the artifact I'm trying to load.
It works fine if I use Maven to create a project.
Here is a simple build.gradle
file that reproduces the problem:
apply plugin: 'java' dependencies { compile group: 'org.valkyriercp', name:'valkyrie-rcp-core', version:'1.1-SNAPSHOT' compile 'org.slf4j:slf4j-log4j12:1.6.4' } repositories { mavenCentral() maven { url "https://raw.github.com/Ekito/maven-repo/master/snapshots/" } }
What am I doing wrong? Is this a Gradle bug with snapshot dependencies?
source share