build.gradle 1.3 KB

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