测试失败。
如何修正异常?下面是堆栈跟踪和代码:
Could not determine the dependencies of task ':test'.
Configuration with name 'default' not found.我的父母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'
}
}测试模块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'))
}发布于 2016-05-04 22:34:33
https://stackoverflow.com/questions/37038905
复制相似问题