DEV Community

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

Posted on

1

[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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more