Patch in a placeholder to "download" the gradle distfile from the place where MacPorts has already downloaded it. --- gradle/wrapper/gradle-wrapper.properties.orig 2023-02-06 15:51:42.000000000 -0600 +++ gradle/wrapper/gradle-wrapper.properties 2023-02-18 16:18:06.000000000 -0600 @@ -1,5 +1,5 @@ #Mon Feb 06 15:51:42 CST 2023 distributionBase=GRADLE_USER_HOME -distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip +distributionUrl=file\://@DISTPATH@/gradle-@GRADLE_VERSION@-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists