Unresolved dependency- Gradle

I have 3 issues when I try to build in gradle.

  1. Unresolved dependency: com.ctre.phoenix:api-java:5.20.2
  2. Unresolved dependency: com.ctre.phoenix:wpiapi-java:5.20.2
    3.Unresolved dependency: junit:junit:4.12

Here is the entire error message
FAILURE: Build failed with an exception.

  • Where:
    Build file ‘C:\Users\delan\OneDrive\Desktop\Robotics\2022-Rapid-React-Main\build.gradle’ line: 81

  • What went wrong:
    Could not determine the dependencies of task ‘:jar’.

Could not resolve all files for configuration ‘:runtimeClasspath’.
Could not resolve com.ctre.phoenix:api-java:5.20.2.
Required by:
project :
Could not resolve com.ctre.phoenix:api-java:5.20.2.
Could not get resource ‘JFrog’.
Could not GET ‘JFrog’.
The server may not support the client’s requested TLS protocol
versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: Build Environment
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested
target
Could not resolve com.ctre.phoenix:api-java:5.20.2.
Could not get resource ‘https://maven.ctr-electronics.com/release/com/ctre/phoenix/api-java/5.20.2/api-java-5.20.2.pom’.
Could not GET ‘https://maven.ctr-electronics.com/release/com/ctre/phoenix/api-java/5.20.2/api-java-5.20.2.pom’.
The server may not support the client’s requested TLS protocol
versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: Build Environment
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested
target
Could not resolve com.ctre.phoenix:api-java:5.20.2.
Could not get resource ‘https://repo.maven.apache.org/maven2/com/ctre/phoenix/api-java/5.20.2/api-java-5.20.2.pom’.
Could not GET ‘https://repo.maven.apache.org/maven2/com/ctre/phoenix/api-java/5.20.2/api-java-5.20.2.pom’.
The server may not support the client’s requested TLS protocol
versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: Build Environment
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested
target
Could not resolve com.ctre.phoenix:wpiapi-java:5.20.2.
Required by:
project :
Could not resolve com.ctre.phoenix:wpiapi-java:5.20.2.
Could not get resource ‘JFrog’.
Could not GET ‘JFrog’.
The server may not support the client’s requested TLS protocol
versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: Build Environment
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested
target
Could not resolve com.ctre.phoenix:wpiapi-java:5.20.2.
Could not get resource ‘https://maven.ctr-electronics.com/release/com/ctre/phoenix/wpiapi-java/5.20.2/wpiapi-java-5.20.2.pom’.
Could not GET ‘https://maven.ctr-electronics.com/release/com/ctre/phoenix/wpiapi-java/5.20.2/wpiapi-java-5.20.2.pom’.
The server may not support the client’s requested TLS protocol
versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: Build Environment
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested
target
Could not resolve com.ctre.phoenix:wpiapi-java:5.20.2.
Could not get resource ‘https://repo.maven.apache.org/maven2/com/ctre/phoenix/wpiapi-java/5.20.2/wpiapi-java-5.20.2.pom’.
Could not GET ‘https://repo.maven.apache.org/maven2/com/ctre/phoenix/wpiapi-java/5.20.2/wpiapi-java-5.20.2.pom’.
The server may not support the client’s requested TLS protocol
versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: Build Environment
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.

BUILD FAILED in 7s
The terminal process “cmd.exe /d /c gradlew build -Dorg.gradle.java.home=“C:\Users\Public\wpilib\2022\jdk”” terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

Here is the code we are using.

We’re mainly using src.

Thanks!

You are behind a firewall that is intercepting HTTPS (probably on a school network). You can work around this by either using a different connection to the Internet or downloading and installing the appropriate offline dependencies.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.