mercredi 4 mai 2016

Testing with Gradle

Testing fails.
How fix exception? Here is stacktrace and code:

Could not determine the dependencies of task ':test'.
Configuration with name 'default' not found.

My parent settings.gradle

rootProject.name = 'opti'
include 'web'

build.gradle

allprojects {
repositories {
    mavenCentral()
}
group 'com.opti'
version '1.0'
apply plugin: 'java'
apply plugin: 'groovy'
dependencies {
    testCompile 'org.codehaus.groovy:groovy-all:2.3.11',
            'org.spockframework:spock-maven:0.7-groovy-2.0'
}
}

Tested module settings.gradle

rootProject.name = 'web'
include 'web'

build.gradle

group 'com.opti'
version '1.0'
apply plugin: 'groovy'
apply plugin: 'java'
repositories {
    mavenCentral()
}
dependencies {
    compile(project(':web'))
}

Aucun commentaire:

Enregistrer un commentaire