settings.gradle 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. jcenter()
  19. }
  20. }
  21. //配置依赖下载仓库以及策略(仓库匹配策略:从上往下依次匹配)
  22. dependencyResolutionManagement {
  23. repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
  24. repositories {
  25. //阿里仓库加速
  26. maven { url 'https://maven.aliyun.com/repository/google' }
  27. maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
  28. maven { url 'https://maven.aliyun.com/repository/public' }
  29. maven { url 'https://maven.aliyun.com/repository/jcenter' }
  30. //网易仓库加速
  31. maven {url 'https://mirrors.163.com/maven/repository/maven-public/'}
  32. maven {url 'https://mirrors.163.com/maven/repository/maven-central/'}
  33. //原生仓库地址
  34. //maven { url "https://kotlin.bintray.com/kotlinx/" }
  35. google()
  36. mavenCentral()
  37. maven { url 'https://jitpack.io' }
  38. jcenter()
  39. }
  40. }
  41. //gradle多模块构建
  42. //指定root根项目模块名称
  43. rootProject.name = 'wechat-robot'
  44. //指定子模块
  45. //include(':')
  46. //指定外部构建模块
  47. //includeBuild('')