settings.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. pluginManagement {
  2. repositories {
  3. google {
  4. content {
  5. includeGroupByRegex("com\\.android.*")
  6. includeGroupByRegex("com\\.google.*")
  7. includeGroupByRegex("androidx.*")
  8. }
  9. }
  10. mavenCentral()
  11. gradlePluginPortal()
  12. maven { url = uri("https://jitpack.io") }
  13. maven { url "https://maven.aliyun.com/repository/public" }
  14. maven{url 'https://maven.aliyun.com/nexus/content/repositories/google'}
  15. maven{url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'}
  16. }
  17. }
  18. /**
  19. *RepositoriesMode.PREFER_PROJECT : 解析依赖库时 , 优先使用本地仓库 , 本地仓库没有该依赖 , 则使用远程仓库 ;
  20. RepositoriesMode.FAIL_ON_PROJECT_REPOS : 解析依赖库时 , 强行使用远程仓库 , 不管本地仓库有没有该依赖库 ;
  21. 原文链接:https://blog.csdn.net/2401_84186067/article/details/138264843
  22. */
  23. dependencyResolutionManagement {
  24. repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
  25. repositories {
  26. google()
  27. mavenCentral()
  28. maven { url = uri("https://jitpack.io") }
  29. maven { url "https://maven.aliyun.com/repository/public" }
  30. maven{url 'https://maven.aliyun.com/nexus/content/repositories/google'}
  31. maven{url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'}
  32. flatDir {
  33. dirs '../JJeFace/facelibrary/libs'
  34. }
  35. }
  36. }
  37. rootProject.name = "JJeFace"
  38. include ':app'
  39. include ':facelibrary'
  40. include ':speark'
  41. include ':datalibrary'
  42. include ':settinglibrary'
  43. include ':registerlibrary'
  44. include ':http'