build.gradle 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. }
  70. // 组件缓存更新时间设置(默认每次build都更新)
  71. configurations.all {
  72. resolutionStrategy.cacheChangingModulesFor 0, 'minutes'
  73. }
  74. }
  75. //allprojects {
  76. // addRepos(repositories)
  77. // subprojects {
  78. // project.configurations.all {
  79. // resolutionStrategy.eachDependency { details ->
  80. // if (details.requested.group == 'com.android.support'
  81. // && !details.requested.name.contains('multidex')) {
  82. // details.useVersion "27.0.2"
  83. // }
  84. // }
  85. // }
  86. // }
  87. //
  88. // // 组件缓存更新时间设置(默认每次build都更新)
  89. // configurations.all {
  90. // resolutionStrategy.cacheChangingModulesFor 0, 'minutes'
  91. // }
  92. //}
  93. task clean(type: Delete) {
  94. delete rootProject.buildDir
  95. }