DEV Community

Cover image for [Tiny] How to Upgrade Gradle Wrapper Using Custom Gradle Distribution
Petr Filaretov
Petr Filaretov

Posted on

[Tiny] How to Upgrade Gradle Wrapper Using Custom Gradle Distribution

In one of the previous posts, I wrote about upgrading Gradle Wrapper.

However, it does not cover the case when you have your own artefact repository, for instance, Artifactory.

In this case use --gradle-distribution-url parameter of the wrapper task to specify the custom Gradle distribution:

  ./gradlew wrapper --gradle-distribution-url=https\://artifactory.example.com/repo/gradle/gradle-8.3-bin.zip
Enter fullscreen mode Exit fullscreen mode

Dream your code, code your dream.

Top comments (0)