这是我的build.gradle
repositories {
maven {
url "${artifactory_contextUrl}/sicam_pq-dev-maven"
credentials {
username = "${artifactory_user}"
password = "${artifactory_password}"
}
}
mavenCentral()
jcenter()
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'jacoco'
dependencies {
compile(group: 'saap-analytics-rt', name: 'saap-analytics-rt', version: '0.0.3-246')
compile(group: 'saap-analytics-dev', name: 'saap-analytics-dev', version: '0.0.3-246')
//================================
// Utility dependencies
//================================
compileOnly "org.projectlombok:lombok:1.16.16"
//================================
// Test dependencies
//================================
testCompile("junit:junit")
testCompile("org.springframework.boot:spring-boot-starter-test:2.0.3.RELEASE")
testCompile (group: 'org.jacoco', name: 'org.jacoco.agent', version: '0.8.3')
}
task wrapper(type: Wrapper) {
gradleVersion = '4.3' //version required
}
jacoco {
toolVersion = "0.8.3"
reportsDir = file("$buildDir/reports")
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
csv.destination file("${buildDir}/reports/jacoco.csv")
xml.destination file("${buildDir}/reports/jacoco.xml")
html.destination file("${buildDir}/jacoco.Html")
}
}
test {
finalizedBy jacocoTestReport
}
但是我收到此错误:
失败:构建失败,并出现异常。
无法解析org.jacoco:org.jacoco.agent:0.8.3。
任何想法?