build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. buildscript {
  2. ext.kotlin_version = "1.5.20"
  3. repositories {
  4. maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
  5. maven { url 'https://maven.aliyun.com/repository/public' } //mavenCentral()的镜像
  6. maven { url 'https://maven.aliyun.com/repository/google/' } //google()的镜像
  7. maven { url 'https://maven.aliyun.com/repository/jcenter' } //jcenter()的镜像
  8. // google()
  9. // mavenCentral()
  10. }
  11. dependencies {
  12. classpath "com.android.tools.build:gradle:4.2.2"
  13. classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10'
  14. classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
  15. classpath "com.alibaba:arouter-register:1.0.2"
  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. // mavenCentral()
  24. // maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
  25. // jcenter()
  26. // maven { url 'https://www.jitpack.io' }
  27. }
  28. }
  29. task clean(type: Delete) {
  30. delete rootProject.buildDir
  31. }