Elasticsearch build Unable to tunnel through proxy

Hi, we are building elasticsearch v8.13.4 using an internal maven repository. During the build process we are seeing this error:
java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 403 Forbidden
The longer log message is included below. This error seems to appear because the build process is trying to reach an external endpoint not reachable within our internal build process. I have looked for hardcoded URLs and places where the build process is making these calls, but haven't found a solution. Any ideas/suggestions where these calls are being made? Thanks in advance!

gradle-build | Elasticsearch Build Hamster says Hello!
gradle-build |   Gradle Version        : 8.7
gradle-build |   OS Info               : Linux 5.14.0-427.40.1.el9_4.x86_64 (amd64)
gradle-build |   JDK Version           : 17.0.12.0.101+1-LTS (Azul Zulu)
gradle-build |   JAVA_HOME             : /opt/tools/Linux/jdk/openjdk_17.0.12.0.101_17.53.12_x64
gradle-build |   Random Testing Seed   : 563C88A3EF05549B
gradle-build |   In FIPS 140 mode      : false
gradle-build | =======================================
gradle-build | 
gradle-build | > Task :libs:elasticsearch-plugin-classloader:compileJava FAILED
gradle-build | > Task :libs:elasticsearch-secure-sm:compileJava FAILED
gradle-build | > Task :libs:elasticsearch-logging:compileJava FAILED
gradle-build | > Task :libs:elasticsearch-plugin-api:compileJava FAILED
gradle-build | > Task :libs:elasticsearch-grok:compileJava FAILED
gradle-build | > Task :libs:elasticsearch-tdigest:compileJava FAILED
gradle-build | > Task :libs:elasticsearch-geo:compileJava FAILED
gradle-build | > Task :server:processResources
gradle-build | 
gradle-build | FAILURE: Build completed with 7 failures.
gradle-build | 
gradle-build | 1: Task failed with an exception.
gradle-build | -----------
gradle-build | * What went wrong:
gradle-build | Execution failed for task ':libs:elasticsearch-plugin-classloader:compileJava'.
gradle-build | > Error while evaluating property 'javaCompiler' of task ':libs:elasticsearch-plugin-classloader:compileJava'.
gradle-build |    > Failed to calculate the value of task ':libs:elasticsearch-plugin-classloader:compileJava' property 'javaCompiler'.
gradle-build |       > java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 403 Forbidden"
gradle-build | 
gradle-build | * Try:
gradle-build | > Run with --stacktrace option to get the stack trace.
gradle-build | > Run with --info or --debug option to get more log output.
gradle-build | > Get more help at https://help.gradle.org.
gradle-build | ==============================================================================

gradle-build | 2: Task failed with an exception.
gradle-build | -----------
gradle-build | * What went wrong:
gradle-build | Execution failed for task ':libs:elasticsearch-secure-sm:compileJava'.
gradle-build | > Error while evaluating property 'javaCompiler' of task ':libs:elasticsearch-secure-sm:compileJava'.
gradle-build |    > Failed to calculate the value of task ':libs:elasticsearch-secure-sm:compileJava' property 'javaCompiler'.
gradle-build |       > java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 403 Forbidden"
gradle-build | 
gradle-build | * Try:
gradle-build | > Run with --stacktrace option to get the stack trace.
gradle-build | > Run with --info or --debug option to get more log output.
gradle-build | > Get more help at https://help.gradle.org.
gradle-build | ==============================================================================

New to gradle builds. Can we someone share which endpoint is being used here for the task ? Any useful input is appreciated here?