build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ext {
  2. sourceCompatibility = JavaVersion.VERSION_1_8
  3. }// Top-level build file where you can add configuration options common to all sub-projects/modules.
  4. buildscript {
  5. repositories {
  6. // google()
  7. // jcenter()
  8. //对应google()
  9. maven {url 'https://maven.aliyun.com/repository/google'}
  10. //对应jcenter()
  11. maven {url 'https://maven.aliyun.com/repository/jcenter'}
  12. //公共库
  13. maven {url 'https://maven.aliyun.com/repository/public'}
  14. maven { url "https://jitpack.io" }
  15. }
  16. dependencies {
  17. classpath 'com.android.tools.build:gradle:4.1.1'
  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. maven {url 'https://maven.aliyun.com/repository/google'}
  27. maven {url 'https://maven.aliyun.com/repository/jcenter'}
  28. maven {url 'https://maven.aliyun.com/repository/public'}
  29. maven {url 'https://jitpack.io'}
  30. }
  31. }
  32. task clean(type: Delete) {
  33. delete rootProject.buildDir
  34. }