We are using our organization jfrog artifactory and we are not supposed to interact with public repos like maven central (MC), gradleplugin portal(GPP) etc directly in build.gradle files. So we created a virtual repo in artifactory which has MC and GPP are mirrored. And also, we are behind proxy and so whitelisted gradle.plugins.org. But plugin download keeps on failing via our artifactory. Couldn't figure out the reason as documentation just says mirror the repository:
https://plugins.gradle.org/docs/mirroring
Later when i tried simple cURL request from our artifactory server, realized its making redirection call to plugins-artifacts.gradle.org to fetch actual plugin contents, which we didn't whitelist in our proxy and so calls are failing. After whitelisting the same, plugin downloads are working fine without any issues.
So my request is please add these redirection details as hints/notes in the documentation so that we will be aware of it instead of banging our heads to figure out the reason. It really helps for people who are behind proxy like us :)
More details can be found here:
https://www.linen.dev/s/gradle-community/t/26864600/i-have-a-project-with-settings-gradle-and-build-gradle-like-#6672ea30-d9dd-4172-99cf-981285c38363
We are using our organization jfrog artifactory and we are not supposed to interact with public repos like maven central (MC), gradleplugin portal(GPP) etc directly in
build.gradlefiles. So we created a virtual repo in artifactory which has MC and GPP are mirrored. And also, we are behind proxy and so whitelisted gradle.plugins.org. But plugin download keeps on failing via our artifactory. Couldn't figure out the reason as documentation just says mirror the repository:https://plugins.gradle.org/docs/mirroring
Later when i tried simple cURL request from our artifactory server, realized its making redirection call to plugins-artifacts.gradle.org to fetch actual plugin contents, which we didn't whitelist in our proxy and so calls are failing. After whitelisting the same, plugin downloads are working fine without any issues.
So my request is please add these redirection details as hints/notes in the documentation so that we will be aware of it instead of banging our heads to figure out the reason. It really helps for people who are behind proxy like us :)
More details can be found here:
https://www.linen.dev/s/gradle-community/t/26864600/i-have-a-project-with-settings-gradle-and-build-gradle-like-#6672ea30-d9dd-4172-99cf-981285c38363