build.gradle 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. // 添加阿里云 maven 地址
  5. // maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  6. // maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
  7. jcenter()
  8. maven { url "https://jitpack.io" }
  9. maven { url 'https://maven.google.com' }
  10. // maven {
  11. // url 'https://maven.google.com/'
  12. // name 'Google'
  13. // }
  14. google()
  15. mavenCentral() // add repository
  16. }
  17. dependencies {
  18. // classpath 'com.android.tools.build:gradle:3.4.2'
  19. classpath 'com.android.tools.build:gradle:3.5.3'
  20. classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-rc2'
  21. classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0' // add plugin
  22. // NOTE: Do not place your application dependencies here; they belong
  23. // in the individual module build.gradle files
  24. }
  25. }
  26. allprojects {
  27. repositories {
  28. // 添加阿里云 maven 地址
  29. // maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  30. // maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
  31. google()
  32. jcenter()
  33. maven { url "https://jitpack.io" }
  34. maven { url 'https://maven.google.com' }
  35. // maven {
  36. // url 'https://maven.google.com/'
  37. // name 'Google'
  38. // }
  39. }
  40. }
  41. //task clean(type: Delete) {
  42. // delete rootProject.buildDir
  43. //}