build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. //对应google()
  7. maven {url 'https://maven.aliyun.com/repository/google'}
  8. //对应jcenter()
  9. maven {url 'https://maven.aliyun.com/repository/jcenter'}
  10. //公共库
  11. maven {url 'https://maven.aliyun.com/repository/public'}
  12. maven { url "https://jitpack.io" }
  13. }
  14. dependencies {
  15. classpath 'com.android.tools.build:gradle:4.0.1'
  16. // NOTE: Do not place your application dependencies here; they belong
  17. // in the individual module build.gradle files
  18. }
  19. }
  20. allprojects {
  21. repositories {
  22. // google()
  23. // jcenter()
  24. maven {url 'https://maven.aliyun.com/repository/google'}
  25. maven {url 'https://maven.aliyun.com/repository/jcenter'}
  26. maven {url 'https://maven.aliyun.com/repository/public'}
  27. maven {url 'https://jitpack.io'}
  28. }
  29. }
  30. task clean(type: Delete) {
  31. delete rootProject.buildDir
  32. }