This is for downloading gradle itself. I'm trying to cache it inside a corporate network as easily as possible. If gradle is available in a nexus repo upstream, then I can point the distributionUrl for the wrapper to the internal nexus.
Maven is available in maven central which is convenient and I was trying to find a similar solution. https://search.maven.org/search?q=g:org.apache.maven%20a:apache-maven
I did find but I was wondering if there was something more official. https://github.com/hazendaz/gradle https://search.maven.org/search?q=g:com.github.hazendaz.gradle%20a:gradle
Thanks for your time
Unfortunately no. The Gradle Wrapper JAR is not published to a Maven repository such as Nexus.
You can see on this line where the actual download occurs. Digging further in you can see here Gradle uses lower level Java mechanisms to download the wrapper.
All Gradle distributions are available here: https://services.gradle.org/distributions/. If you look at the version information, there is a JSON file that contains what the latest release version is. I'm not entirely familiar with managing Nexus, but if you could somehow create a plugin of some sort to poll that version information, then you could download it if it's not already available/cached in Nexus.