build.gradle 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. // 引入自定义Gradle配置文件
  3. apply from: "config.gradle"
  4. buildscript {
  5. repositories {
  6. google()
  7. // jcenter()
  8. mavenCentral()
  9. mavenLocal()
  10. maven { url 'https://jitpack.io' }
  11. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/'}
  12. maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" }
  13. }
  14. dependencies {
  15. classpath "com.android.tools.build:gradle:4.1.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. mavenCentral()
  25. mavenLocal()
  26. maven { url 'https://jitpack.io' }
  27. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/'}
  28. maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" }
  29. }
  30. }
  31. task clean(type: Delete) {
  32. delete rootProject.buildDir
  33. }