build.gradle 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. buildscript {
  2. repositories {
  3. // jcenter()
  4. // google()
  5. maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
  6. maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
  7. maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
  8. maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'}
  9. }
  10. dependencies {
  11. classpath 'com.android.tools.build:gradle:3.6.3'
  12. }
  13. }
  14. allprojects {
  15. repositories {
  16. // google()
  17. // mavenCentral()
  18. // jcenter() // Warning: this repository is going to shut down soon
  19. maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
  20. maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
  21. maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
  22. maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'}
  23. flatDir {
  24. dirs 'libs' // aar目录
  25. }
  26. }
  27. }
  28. task clean(type: Delete) {
  29. delete rootProject.buildDir
  30. }