build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. apply from: "config.gradle"
  3. buildscript {
  4. ext {
  5. kotlin_version = '1.6.0'
  6. coroutines_version = '1.5.2'
  7. }
  8. repositories {
  9. google()
  10. mavenCentral()
  11. jcenter()
  12. maven { url 'https://maven.aliyun.com/repository/public' }
  13. maven { url 'https://jitpack.io' }
  14. maven { url 'https://developer.huawei.com/repo' }
  15. }
  16. allprojects {
  17. repositories {
  18. google()
  19. mavenCentral()
  20. jcenter()
  21. maven { url 'https://maven.aliyun.com/repository/public' }
  22. maven { url 'https://jitpack.io' }
  23. maven { url 'https://developer.huawei.com/repo' }
  24. }
  25. }
  26. dependencies {
  27. classpath 'com.android.tools.build:gradle:7.0.2'
  28. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  29. classpath 'com.huawei.agconnect:agcp:1.6.0.300'
  30. // NOTE: Do not place your application dependencies here; they belong
  31. // in the individual module build.gradle files
  32. }
  33. }
  34. task clean(type: Delete) {
  35. delete rootProject.buildDir
  36. }