build.gradle 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. apply from: 'versions.gradle'
  4. //addRepos(repositories)
  5. repositories {
  6. google()
  7. jcenter()
  8. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  9. mavenCentral()
  10. maven { url "https://jitpack.io" }
  11. // 友盟
  12. maven { url 'https://dl.bintray.com/umsdk/release' }
  13. maven {
  14. url MAVEN_PUBLIC_URL
  15. credentials {
  16. username MAVEN_USERNAME
  17. password MAVEN_PASSWORD
  18. }
  19. }
  20. // // 私有仓库地址
  21. // maven { url "http://lib.gcssloop.com/repository/gcssloop-central/" }
  22. }
  23. dependencies {
  24. classpath deps.android_gradle_plugin
  25. classpath deps.kotlin_gradle_plugin
  26. classpath deps.butterknife_gradle_plugin
  27. // classpath 'com.jakewharton:butterknife-gradle-plugin:10.1.0'
  28. // 知乎相册需要
  29. classpath 'com.novoda:bintray-release:0.9.1'
  30. // emoji
  31. classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
  32. }
  33. // repositories {
  34. // google()
  35. // jcenter()
  36. // mavenCentral()
  37. // maven { url "https://jitpack.io" }
  38. // // 友盟
  39. // maven { url 'https://dl.bintray.com/umsdk/release' }
  40. // }
  41. }
  42. allprojects {
  43. repositories {
  44. // 支付宝 SDK AAR 包所需的配置
  45. flatDir {
  46. dirs project(':uchat_account').file('libs')
  47. dirs project(':uchat_core').file('libs')
  48. }
  49. google()
  50. jcenter()
  51. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  52. mavenCentral()
  53. maven { url "https://dl.bintray.com/rongcloud/maven" }
  54. maven { url "https://jitpack.io" }
  55. // 友盟
  56. maven { url 'https://dl.bintray.com/umsdk/release' }
  57. maven {
  58. url MAVEN_PUBLIC_URL
  59. credentials {
  60. username MAVEN_USERNAME
  61. password MAVEN_PASSWORD
  62. }
  63. }
  64. maven {
  65. url 'https://dl.bintray.com/linkedme2016/lkme-deeplinks'
  66. }
  67. // // 私有仓库地址
  68. // maven { url "http://lib.gcssloop.com/repository/gcssloop-central/" }
  69. // maven {
  70. // url 'https://maven.aliyun.com/repository/public'
  71. // }
  72. // maven {
  73. // credentials {
  74. // username '5f5ee8532d5925c55bec6983'
  75. // password '8_]3dGOKe4zx'
  76. // }
  77. // url 'https://packages.aliyun.com/maven/repository/2033452-release-Tv7qvH/'
  78. // }
  79. // maven {
  80. // credentials {
  81. // username '5f5ee8532d5925c55bec6983'
  82. // password '8_]3dGOKe4zx'
  83. // }
  84. // url 'https://packages.aliyun.com/maven/repository/2033452-snapshot-ELyiH0/'
  85. // }
  86. }
  87. // 组件缓存更新时间设置(默认每次build都更新)
  88. configurations.all {
  89. resolutionStrategy.cacheChangingModulesFor 0, 'minutes'
  90. }
  91. }
  92. //allprojects {
  93. // addRepos(repositories)
  94. // subprojects {
  95. // project.configurations.all {
  96. // resolutionStrategy.eachDependency { details ->
  97. // if (details.requested.group == 'com.android.support'
  98. // && !details.requested.name.contains('multidex')) {
  99. // details.useVersion "27.0.2"
  100. // }
  101. // }
  102. // }
  103. // }
  104. //
  105. // // 组件缓存更新时间设置(默认每次build都更新)
  106. // configurations.all {
  107. // resolutionStrategy.cacheChangingModulesFor 0, 'minutes'
  108. // }
  109. //}
  110. task clean(type: Delete) {
  111. delete rootProject.buildDir
  112. }