Could not resolve org.seleniumhq.selenium:selenium-java:3.141.59

Hi,
I am new in Gradle. I am using Intellij IDEA with Gradle. I added selenium dependency in build.gradle but gradle does not connect and download jar files from maven repo. I tried different dependency like testng, restassured, same thing happened.
But it works fine with maven. Does anybody have idea what is the problem might be?
Error is attached below.
Thanks.

Download selenium.jar and add it in Libraries