I have configured a simple bndtools project with one bundle project. I am using 'biz.aQute.bnd.workspace' bnd gradle plugin to build the project. The build is working fine.
Now I want to add jacoco gradle plugin to get the coverage report and I always get following error.
* What went wrong:
Could not resolve all dependencies for configuration
':com.example.api:jacocoAgent'.
> Cannot resolve external dependency org.jacoco:org.jacoco.agent:0.7.8
because no repositories are defined.
Required by:
project :com.example.api
My Settings.gradle file
buildscript {
repositories {
maven {
url 'https://bndtools.ci.cloudbees.com/job/bnd.master/lastSuccessfulBuild/artifact/dist/bundles'
}
mavenCentral()
}
dependencies {
classpath 'biz.aQute.bnd:biz.aQute.bnd.gradle:+', 'org.jacoco:org.jacoco.agent:0.7.8'
}
}
apply plugin: 'biz.aQute.bnd.workspace'
My build.gradle file is as below
subprojects {
apply plugin: 'jacoco'
}