Default Gradle distribution used in isolated environment

Hello,

I’m working on an Android project that I ported over to a Gradle and Android Studio project in an isolated environment.
The Gradle distribution, as well as all packages, are provided by our in-house repository. As such, the settings.gradle.kts at the root of the project points towards this repository, as well as the distribution URL for Gradle in gradle/gradle-wrapper/gradle-wrapper.properties.

While syncing the project with Gradle, we’re running into an issue where we get "Error : could not head ‘https://services.gradle.org/distributions/gradle-8.4-src.zip’. (I can join the complete error log on demand.)

The error doesn’t seem to really impact the whole project : we are still able to build APKs and work with the project. However, this does impact adoptability of Gradle for our whole squad, and we would like to understand where the issue is coming from, so that the rest of our team are able to use Gradle seamlessly.

I don’t seem to be able to find the URL anywhere in my project. Which setting would set this up ? Is there a configuration I must add for this ?

Unfortunatley this URL that is used during IDE sync is hard-coded right now.
Here is the issue to up-vote: URL for Gradle sources is hard-coded into SourceDistributionResolver · Issue #18249 · gradle/gradle · GitHub
As a work-around you can switch from the -bin to the -all distribution, as that already includes the sources so they don’t need to be retrieved until that bug is fixed.