Hi,
I was using the gradle-cobertura-plugin from https://github.com/stevesaliman/gradle-cobertura-plugin to run the cobertura tests from gradle. However, recently I started hitting on the following errors
FAILURE: Build failed with an exception.
What went wrong: Could not resolve all dependencies for configuration ':testRuntime'. > Module version misc:myproject:1.0-SNAPSHOT, configuration 'testRuntime' declares a dependency on configuration 'default' which is not declared in the module descriptor for net.sourceforge.cobertura:cobertura:2.0.3
and the configuration snippet is given below
build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "net.saliman:gradle-cobertura-plugin:1.2.0"
}
}
apply plugin: 'java'
apply plugin: 'cobertura'
cobertura {
cobertura.coverageIgnoreTrivial = true
coverageFormats = ['xml', 'html']
cobertura.coverageExcludes = ['.*DTO.*']
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile 'com.h2database:h2:1.3.164'
testCompile group: 'org', name: 'mockachino', version: '0.6.1', configuration: 'runtime'
}
repository.gradle
project.ext {
ivyArtifactPattern = '[organisation]/[module]/[module]-[revision]/[artifact]-[revision].[ext]'
ivyPattern = '[organisation]/[module]/[module]-[revision]/ivy-[revision].xml'
}
repositories {
ivy {
url 'http://ivy.dev.mycompany.com/repository'
layout "pattern", {
artifact project.ivyArtifactPattern
ivy project.ivyArtifactPattern
}
}
mavenCentral()
}
I am using gradle1.7. Can any one please advise on how to correct this?
Thanks in advance