Gradle does not download cucumber libraries

1

I am trying to create a project to test the Cucumber (ATDD) tool and assess whether it is possible to use it for another project. The requirements that are presented to me are that I be able to work with Java, JUnit, Gradle and IntelliJ (the latter at the level of plugin integration).

The problem is that, apparently, gradle is not able to download the necessary dependencies to work with this framework (these same dependencies if they are downloaded with maven). The file build.gradle is the following:

apply plugin: 'java'
apply plugin: 'idea'

sourceCompatibility = 1.8

repositories {
    mavenCentral()
}

dependencies {
    testCompile 'junit:junit:4.11'
    //testCompile 'info.cukes:cucumber-spring:1.2.4'
    testCompile 'info.cukes:cucumber-core:1.2.4'
    testCompile 'info.cukes:cucumber-html:0.2.3'
    testCompile 'info.cukes:cucumber-java:1.2.4'
    testCompile 'info.cukes:cucumber-junit:1.2.4'
    testCompile 'info.cukes:cucumber-jvm-deps:1.0.5'
} 

If I execute the command gradle dependencies I get the following trace:

------------------------------------------------------------
Root project
------------------------------------------------------------

archives - Configuration for archive artifacts.
No dependencies

compile - Compile classpath for source set 'main'.
No dependencies

default - Configuration for default artifacts.
No dependencies

runtime - Runtime classpath for source set 'main'.
No dependencies

testCompile - Compile classpath for source set 'test'.
+--- junit:junit:4.11
|    \--- org.hamcrest:hamcrest-core:1.3
+--- info.cukes:cucumber-core:1.2.4 FAILED
+--- info.cukes:cucumber-html:0.2.3 FAILED
+--- info.cukes:cucumber-java:1.2.4 FAILED
+--- info.cukes:cucumber-junit:1.2.4 FAILED
\--- info.cukes:cucumber-jvm-deps:1.0.5 FAILED

testRuntime - Runtime classpath for source set 'test'.
+--- junit:junit:4.11
|    \--- org.hamcrest:hamcrest-core:1.3
+--- info.cukes:cucumber-core:1.2.4 FAILED
+--- info.cukes:cucumber-html:0.2.3 FAILED
+--- info.cukes:cucumber-java:1.2.4 FAILED
+--- info.cukes:cucumber-junit:1.2.4 FAILED
\--- info.cukes:cucumber-jvm-deps:1.0.5 FAILED

BUILD SUCCESSFUL

Total time: 0.484 secs
15:54:20: External task execution finished 'dependencies'.

In fact, IntelliJ shows the dependencies in the following way:

What could this problem be?

    
asked by hecnabae 11.05.2016 в 16:06
source

0 answers