Issue resolving dependencies in Singapore

Hi ,

We recently upgraded our android project gradle plugin to latest 7.3.1 ,

locally everything working fine ,

But our pipeline are failing , with this error

After debugging found out we cant reach the artifact repo for gradle , here is some logs from pipeline trying to reach the repo

$ wget "https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.6.21/kotlin-gradle-plugin-1.6.21.jar"
303 See Other
Location: https://plugins-artifacts.gradle.org/org.jetbrains.kotlin/kotlin-gradle-plugin/1.6.21/6753a2e1126d3f993a951af2adc06b1ec4ca27176e96c8f632777990104d15ad/kotlin-gradle-plugin-1.6.21.jar [following]
--2022-12-22 09:45:53--  https://plugins-artifacts.gradle.org/org.jetbrains.kotlin/kotlin-gradle-plugin/1.6.21/6753a2e1126d3f993a951af2adc06b1ec4ca27176e96c8f632777990104d15ad/kotlin-gradle-plugin-1.6.21.jar
Resolving plugins-artifacts.gradle.org (plugins-artifacts.gradle.org)... 104.18.191.9, 104.18.190.9, 2606:4700::6812:be09, ...
Connecting to plugins-artifacts.gradle.org (plugins-artifacts.gradle.org)|104.18.191.9|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9370850 (8.9M) [binary/octet-stream]
Saving to: ‘kotlin-gradle-plugin-1.6.21.jar’
     0K .......... .......... .......... .......... ..........  0% 21.6K 7m2s
    50K .......... .......... .......... .......... ..........  1% 1.55K 52m19s
   100K .......... .......... .......... .......... ..........  1% 1.55K 66m51s
   150K .......                                                 1% 91.9M=67s
2022-12-22 10:02:03 (2.36 KB/s) - Read error at byte 161747/9370850 (Connection timed out). Retrying.
--2022-12-22 10:02:04--  (try: 2)  https://plugins-artifacts.gradle.org/org.jetbrains.kotlin/kotlin-gradle-plugin/1.6.21/6753a2e1126d3f993a951af2adc06b1ec4ca27176e96c8f632777990104d15ad/kotlin-gradle-plugin-1.6.21.jar
Connecting to plugins-artifacts.gradle.org (plugins-artifacts.gradle.org)|104.18.191.9|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 9370850 (8.9M), 9209103 (8.8M) remaining [binary/octet-stream]
Saving to: ‘kotlin-gradle-plugin-1.6.21.jar’
        [ skipping 150K ]
   150K ,,,,,,,... .......... .......... .......... ..........  2% 5.63K 31m30s
   200K .......... .......... .......... .......... ..........  2% 6.00K 27m45s
   250K .......... .......... .......... ...                    3%  778 =62s
2022-12-22 10:18:36 (2.04 KB/s) - Read error at byte 290691/9370850 (Connection timed out). Retrying.
--2022-12-22 10:18:38--  (try: 3)  https://plugins-artifacts.gradle.org/org.jetbrains.kotlin/kotlin-gradle-plugin/1.6.21/6753a2e1126d3f993a951af2adc06b1ec4ca27176e96c8f632777990104d15ad/kotlin-gradle-plugin-1.6.21.jar
Connecting to plugins-artifacts.gradle.org (plugins-artifacts.gradle.org)|104.18.191.9|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 9370850 (8.9M), 9080159 (8.7M) remaining [binary/octet-stream]
Saving to: ‘kotlin-gradle-plugin-1.6.21.jar’
        [ skipping 250K ]
   250K ,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,,, ,,,....... ..........  3%  150M 0s
   300K .......... .......... .......... ....                   3%  306 =1m55s
2022-12-22 10:21:07 (450 B/s) - Connection closed at byte 342270. Retrying.
--2022-12-22 10:21:10--  (try: 4)  https://plugins-artifacts.gradle.org/org.jetbrains.kotlin/kotlin-gradle-plugin/1.6.21/6753a2e1126d3f993a951af2adc06b1ec4ca27176e96c8f632777990104d15ad/kotlin-gradle-plugin-1.6.21.jar
Connecting to plugins-artifacts.gradle.org (plugins-artifacts.gradle.org)|104.18.191.9|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 9370850 (8.9M), 9028580 (8.6M) remaining [binary/octet-stream]
Saving to: ‘kotlin-gradle-plugin-1.6.21.jar’
        [ skipping 300K ]
   300K ,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,,, ,,,,...... ..........  3%  174M 0s
   350K .......... .......... .......... .......... ..........  4% 2.63K 42m13s
   400K .......... .......... .......... .......... ..........  4% 9.70K 30m18s
   450K .......... .......... .......... .......... ..........  5% 2.76K 36m48s
   500K .......... .......... ....

you can see it was really slow and then timed out
our pipeline cluster is in GCP based in Singapore

any suggestion ?

noting we are using buildSrc setup