Created
June 3, 2023 06:04
-
-
Save zhanyeye/128c0e3f6a4f2c78e2c9c170e24318cf to your computer and use it in GitHub Desktop.
init.gradle 配置
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
allprojects { | |
repositories { | |
// 指定使用maven本地仓库,查找顺序为: USER_HOME/.m2/settings.xml >> M2_HOME/conf/settings.xml >> USER_HOME/.m2/repository | |
// 若本地仓有该依赖,则直接加载本地仓的依赖,若没有,则从远程仓库下载 (下载到gradle缓存目录, 非maven本地仓库) | |
mavenLocal() | |
maven { name "Alibaba"; url "https://maven.aliyun.com/repository/public" } | |
maven { name "Bstek"; url "https://nexus.bsdn.org/content/groups/public/" } | |
mavenCentral() | |
} | |
buildscript { | |
repositories { | |
maven { name "Alibaba"; url 'https://maven.aliyun.com/repository/public' } | |
maven { name "Bstek"; url 'https://nexus.bsdn.org/content/groups/public/' } | |
maven { name "M2"; url 'https://plugins.gradle.org/m2/' } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment