build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. google()
  5. jcenter()
  6. mavenCentral()
  7. }
  8. dependencies {
  9. classpath 'com.android.tools.build:gradle:3.1.0'
  10. classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0'
  11. classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'
  12. // NOTE: Do not place your application dependencies here; they belong
  13. // in the individual module build.gradle files
  14. }
  15. }
  16. allprojects {
  17. repositories {
  18. google()
  19. jcenter()
  20. mavenCentral()
  21. maven { url "https://www.jitpack.io" }
  22. maven {
  23. url 'https://maven.google.com/'
  24. name 'Google'
  25. }
  26. maven {url 'http://developer.huawei.com/repo/'}
  27. // flatDir {
  28. // // 下把Library module中的libs目录添加到依赖关系中
  29. // dirs project(':hmspush').file('libs')
  30. // }
  31. }
  32. }
  33. task clean(type: Delete) {
  34. delete rootProject.buildDir
  35. }