build.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. mavenCentral()
  5. google()
  6. jcenter()
  7. maven { url 'https://developer.huawei.com/repo/' } // 华为 maven 仓库地址
  8. }
  9. dependencies {
  10. classpath 'com.android.tools.build:gradle:4.2.2'
  11. classpath 'com.google.gms:google-services:4.3.3'
  12. classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.10'
  13. classpath "com.tencent.android.tpns:tpnsplugin:1.7.0" //tpns集成插件
  14. classpath 'com.huawei.agconnect:agcp:1.3.1.300' // 华为推送 gradle 插件依赖
  15. // NOTE: Do not place your application dependencies here; they belong
  16. // in the individual module build.gradle files
  17. }
  18. configurations.all {
  19. resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds'
  20. }
  21. }
  22. allprojects {
  23. repositories {
  24. google()
  25. jcenter()
  26. maven { url "https://jitpack.io" }
  27. maven { url 'https://developer.huawei.com/repo/' } // 华为 maven 仓库地址
  28. maven {
  29. url 'https://maven.aliyun.com/nexus/content/repositories/releases/'
  30. } // 阿里短视频
  31. flatDir {
  32. //所有的module的repositories下把library module中的libs目录添加到依赖关系中
  33. dirs project(':KlcUtils').file('libs')
  34. dirs project(':KlcBase').file('libs')
  35. dirs project(':libLiveCloud').file('libs')
  36. dirs project(':KlcLiveCloud').file('libs')
  37. dirs project(':libStorage').file('libs')
  38. dirs project(':libCamera').file('libs')
  39. }
  40. }
  41. }
  42. task clean(type: Delete) {
  43. delete rootProject.buildDir
  44. }