build.gradle 1.2 KB

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