Skip to content

bigoldcat123/auto-gradel-mirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

this it a tool for adding gradle mirrors

gradle init

usage

app // run this inside the root of your project

int the root dir run app it will add the code below to the settings.gradle.kts , remove the mavenCentral() inside the build.gradle.kts, and change the distributionUrl inside gradle/wrapper/gradle-wrapper.properties

dependencyResolutionManagement {
    repositories{
        maven("https://mirrors.cloud.tencent.com/nexus/repository/maven-public/")
    }
}
pluginManagement {
    repositories{
        maven("https://maven.aliyun.com/repository/gradle-plugin")
    }
}

About

add mirror

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages