My build names two dependencies to cucumber-jvm:
testCompile ‘info.cukes:cucumber-java:1.1.1’
testCompile ‘info.cukes:cucumber-junit:1.1.1’
Both depend on the core package, cucumber-jvm, which uses the maven packaging type “pom”. Gradle 1.2 tries to resolve the .jar file for cucumber-jvm, though. Can I work around this?
In my build, I see this:
Download http://repo1.maven.org/maven2/info/cukes/cucumber-java/1.1.1/cucumber-java-1.1.1.pom
Download http://repo1.maven.org/maven2/info/cukes/cucumber-jvm/1.1.1/cucumber-jvm-1.1.1.pom
Download http://repo1.maven.org/maven2/info/cukes/cucumber-junit/1.1.1/cucumber-junit-1.1.1.pom
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':Engine_Character:testCompile'.
> Could not resolve group:info.cukes, module:cucumber-java, version:1.1.1.
Required by:
workspace:Engine_Character:unspecified
> Could not resolve group:info.cukes, module:cucumber-jvm, version:1.1.1.
> Could not HEAD 'http://repo1.maven.org/maven2/info/cukes/cucumber-jvm/1.1.1/cucumber-jvm-1.1.1.jar'.
> Could not resolve group:info.cukes, module:cucumber-junit, version:1.1.1.
Required by:
workspace:Engine_Character:unspecified
> Could not resolve group:info.cukes, module:cucumber-jvm, version:1.1.1.
> Could not HEAD 'http://repo1.maven.org/maven2/info/cukes/cucumber-jvm/1.1.1/cucumber-jvm-1.1.1.jar'.
This could be related to this issue, where getting a dependency from Maven Central failed.