settings.gradle 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //配置插件仓库(仓库匹配策略:从上往下依次匹配)
  2. pluginManagement {
  3. repositories {
  4. //阿里仓库加速
  5. maven { url 'https://maven.aliyun.com/repository/google' }
  6. maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
  7. maven { url 'https://maven.aliyun.com/repository/public' }
  8. maven { url 'https://maven.aliyun.com/repository/jcenter' }
  9. //网易仓库加速
  10. maven {url 'https://mirrors.163.com/maven/repository/maven-public/'}
  11. maven {url 'https://mirrors.163.com/maven/repository/maven-central/'}
  12. //maven { url "https://kotlin.bintray.com/kotlinx/" }
  13. //原生仓库地址
  14. google()
  15. mavenCentral()
  16. maven { url 'https://jitpack.io' }
  17. gradlePluginPortal()
  18. }
  19. }
  20. //配置依赖下载仓库以及策略(仓库匹配策略:从上往下依次匹配)
  21. dependencyResolutionManagement {
  22. repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
  23. repositories {
  24. //阿里仓库加速
  25. maven { url 'https://maven.aliyun.com/repository/google' }
  26. maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
  27. maven { url 'https://maven.aliyun.com/repository/public' }
  28. maven { url 'https://maven.aliyun.com/repository/jcenter' }
  29. //网易仓库加速
  30. maven {url 'https://mirrors.163.com/maven/repository/maven-public/'}
  31. maven {url 'https://mirrors.163.com/maven/repository/maven-central/'}
  32. //原生仓库地址
  33. //maven { url "https://kotlin.bintray.com/kotlinx/" }
  34. google()
  35. mavenCentral()
  36. maven { url 'https://jitpack.io' }
  37. }
  38. }
  39. //gradle多模块构建
  40. //指定root根项目模块名称
  41. rootProject.name = 'wechat-robot'
  42. //指定子模块
  43. //include(':')
  44. //指定外部构建模块
  45. //includeBuild('')