build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72"
  17. // NOTE: Do not place your application dependencies here; they belong
  18. // in the individual module build.gradle files
  19. }
  20. }
  21. allprojects {
  22. repositories {
  23. google()
  24. // jcenter()
  25. mavenCentral()
  26. mavenLocal()
  27. maven { url 'https://jitpack.io' }
  28. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/'}
  29. maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" }
  30. }
  31. }
  32. task clean(type: Delete) {
  33. delete rootProject.buildDir
  34. }