build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. //google()
  5. jcenter()
  6. maven { url 'https://jitpack.io' }
  7. maven { url 'https://maven.aliyun.com/repository/google' }
  8. maven { url 'https://maven.aliyun.com/repository/public' }
  9. }
  10. dependencies {
  11. classpath "com.android.tools.build:gradle:4.0.1"
  12. // NOTE: Do not place your application dependencies here; they belong
  13. // in the individual module build.gradle files
  14. }
  15. }
  16. allprojects {
  17. ext {
  18. compileSdkVersion = 31
  19. minSdkVersion = 21
  20. targetSdkVersion = 31
  21. coreKtxVersion = '1.6.0'
  22. appcompatVersion = '1.4.1'
  23. materialVersion = '1.6.0'
  24. constraintlayoutVersion = '2.0.3'
  25. legacySupportV4 ='1.0.0'
  26. lifecycleVersion = '2.4.0'
  27. junitVersion = '4.13.2'
  28. testExtJunitVersion='1.1.3'
  29. espressoCoreVersion='3.4.0'
  30. //jacksonVersion='2.13.2'
  31. jacksonVersion='2.9.8'
  32. retrofitVersion='2.9.0'
  33. room_version = '2.4.2'
  34. pahoMqtt='1.2.5'
  35. }
  36. repositories {
  37. //google()
  38. jcenter()
  39. maven { url 'https://jitpack.io' }
  40. maven { url 'https://maven.aliyun.com/repository/google' }
  41. maven { url 'https://maven.aliyun.com/repository/public' }
  42. flatDir {
  43. dirs 'libs' // aar目录
  44. }
  45. }
  46. }
  47. task clean(type: Delete) {
  48. delete rootProject.buildDir
  49. }