build.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. gradlePluginPortal()
  5. google()
  6. mavenCentral()
  7. maven {
  8. allowInsecureProtocol = true
  9. url 'http://maven.aliyun.com/nexus/content/groups/public/'
  10. }
  11. maven { url 'https://developer.huawei.com/repo/' }
  12. maven { url 'https://repo1.maven.org/maven2/' }
  13. maven { url "http://mvn.mob.com/android" }
  14. maven {
  15. allowInsecureProtocol = true
  16. url MAVEN_PUBLIC_URL
  17. credentials {
  18. username MAVEN_USERNAME
  19. password MAVEN_PASSWORD
  20. }
  21. }
  22. }
  23. dependencies {
  24. classpath 'com.android.tools.build:gradle:7.2.2'
  25. classpath 'com.huawei.agconnect:agcp:1.6.0.300'
  26. // NOTE: Do not place your application dependencies here; they belong
  27. // in the individual module build.gradle files
  28. }
  29. }
  30. allprojects {
  31. repositories {
  32. gradlePluginPortal()
  33. google()
  34. mavenCentral()
  35. maven {
  36. allowInsecureProtocol = true
  37. url 'http://maven.aliyun.com/nexus/content/groups/public/'
  38. }
  39. maven { url 'https://developer.huawei.com/repo/' }
  40. maven { url 'https://repo1.maven.org/maven2/' }
  41. maven { url "http://mvn.mob.com/android" }
  42. maven {
  43. allowInsecureProtocol = true
  44. url MAVEN_PUBLIC_URL
  45. credentials {
  46. username MAVEN_USERNAME
  47. password MAVEN_PASSWORD
  48. }
  49. }
  50. }
  51. }
  52. task clean(type: Delete) {
  53. delete rootProject.buildDir
  54. }