Cannot resolve dependency in 3rd party repo of custom nexus

I uploaded a jar file in our custom nexus 3rd party repo, but Gradle cannot resolve the dependency, the msg is:
> Could not find jmxtools.jar (com.sun.jdmk:jmxtools:1.2.1).
Searched in the following locations:
http://192.168.0.130:8081/nexus/content/groups/public/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar

I can download the jar file by pasting the url in a browser, is there something more I should do?
The dependency is not directly depended by my project, it’s depended by a lib I am using.

Perhaps Gradle cannot access that URL (proxy settings, authentication credentials)? Try running your build with -S to see if there is some kind of transport error happening.