build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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. maven { url 'https://jitpack.io' }
  9. google()
  10. mavenCentral()
  11. }
  12. dependencies {
  13. classpath "com.android.tools.build:gradle:8.1.3"
  14. classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10'
  15. classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
  16. classpath 'com.alibaba:arouter-register:1.0.2'
  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. // mavenCentral()
  25. // maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
  26. // jcenter()
  27. // maven { url 'https://www.jitpack.io' }
  28. }
  29. }
  30. task clean(type: Delete) {
  31. delete rootProject.buildDir
  32. }