build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. apply from: "config.gradle"
  3. buildscript {
  4. repositories {
  5. google()
  6. jcenter()
  7. maven { url 'https://maven.aliyun.com/repository/google' }
  8. maven { url 'https://maven.aliyun.com/repository/jcenter' }
  9. maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
  10. }
  11. dependencies {
  12. classpath 'com.android.tools.build:gradle:3.5.3'
  13. classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'
  14. classpath 'com.novoda:bintray-release:0.7.0'
  15. }
  16. }
  17. allprojects {
  18. repositories {
  19. google()
  20. jcenter()
  21. mavenCentral()
  22. // //引用网上github路径,以便引入第三方库
  23. maven { url "https://jitpack.io" }
  24. maven { url 'https://maven.aliyun.com/repository/google' }
  25. maven { url 'https://maven.aliyun.com/repository/jcenter' }
  26. maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
  27. }
  28. }
  29. task clean(type: Delete) {
  30. delete rootProject.buildDir
  31. }