Skip to content

This is a java agent for Gradle `distributionUrl` property global mirror setting.

Notifications You must be signed in to change notification settings

CarefulDeveloper/GradleAgent

Repository files navigation

Gradle Agent

This is a java agent for Gradle distributionUrl property global mirror setting.

How to Use

  1. Download the agent jar here

  2. edit the system environment variable like this:

    GRADLE_OPTS = -javaagent:C:\path\to\GradleAgent.jar=https://www.mirrror.host.com/gradle/gradle-%1$s-%2$s.zip
    

    %1$s will be fill with the gradle version info, like 8.8; %2$s will be filled with distribution type, like all bin.

  3. edit JetBrains IDE VM Options(optional, support for JetBrains IDE)

    follow the documentation, then append new line with:

    -javaagent:C:\path\to\GradleAgent.jar=https://www.mirrror.host.com/gradle/gradle-%1$s-%2$s.zip
    
  4. restart terminal or JetBrains IDE

    make configuration effect now!

  5. sync Gradle and observe the output of Gradle.

    if you never use this version of Gradle, you should see it download the Gradle distribution from the mirror website.

Thanks

About

This is a java agent for Gradle `distributionUrl` property global mirror setting.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages