Hello,
I tried to setup jacoco using gradlew 4.6 behind a proxy.
When I try to use jacoco I get
* What went wrong:
A problem occurred configuring root project ‘XXXX.
> Could not resolve all dependencies for configuration ‘:classpath’.
> Could not determine artifacts for org.jacoco:org.jacoco.build:0.8.1
> Could not get resource https://plugins.gradle.org/m2/org/jacoco/org.jacoco.build/0.8.1/org.jacoco.build-0.8.1.jar’.
> Could not HEAD ‘https://plugins.gradle.org/m2/org/jacoco/org.jacoco.build/0.8.1/org.jacoco.build-0.8.1.jar’.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 7s
My configuration is
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
url "http://repo1.maven.org/maven2/"
}
mavenCentral()
jcenter()
}
dependencies { classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.2"
classpath 'org.jacoco:org.jacoco.core:0.8.1'
classpath 'org.jacoco:org.jacoco.ant:0.8.1'
classpath 'org.jacoco:org.jacoco.build:0.8.1'
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.sonarqube'
apply plugin: 'jacoco'
Any idea?