Skip to content

Instantly share code, notes, and snippets.

@gcdd1993
Last active June 11, 2021 06:38
Show Gist options
  • Save gcdd1993/8625cfef3446d866d7b913658d09bd28 to your computer and use it in GitHub Desktop.
Save gcdd1993/8625cfef3446d866d7b913658d09bd28 to your computer and use it in GitHub Desktop.
[Gradle配置,国内镜像加速] #Gradle|-|{"files":{"settings.gradle":{"env":"plain"}},"tag":"Uncategorized"}
pluginManagement {
repositories {
mavenLocal()
repositories {
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
maven { url 'https://maven.aliyun.com/repository/public/' }
}
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositories {
mavenLocal()
maven { url = uri("https://maven.aliyun.com/repository/central") } // central
maven { url = uri("https://maven.aliyun.com/repository/public") } // jcenter & public
maven { url = uri("https://maven.aliyun.com/repository/google") } // google
maven { url = uri("https://maven.aliyun.com/repository/spring") } // spring
maven { url = uri("https://maven.aliyun.com/repository/spring-plugin") } // spring plugin
maven { url = uri("https://maven.aliyun.com/repository/grails-core") } // spring plugin
}
}
rootProject.name = "xxx"
include("xxx")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment