build.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. maven {
  5. url 'https://maven.aliyun.com/repository/jcenter'
  6. }
  7. maven {
  8. url 'https://maven.aliyun.com/repository/central'
  9. }
  10. maven {
  11. url 'https://maven.aliyun.com/repository/google'
  12. }
  13. maven { url "https://jitpack.io" }
  14. // jcenter()
  15. // maven {
  16. // url 'https://maven.google.com/'
  17. // name 'Google'
  18. // }
  19. }
  20. dependencies {
  21. classpath 'com.android.tools.build:gradle:2.3.3'
  22. // NOTE: Do not place your application dependencies here; they belong
  23. // in the individual module build.gradle files
  24. }
  25. }
  26. //wuyq add for compile error begin
  27. allprojects {
  28. repositories {
  29. maven {
  30. url 'https://maven.aliyun.com/repository/jcenter'
  31. }
  32. maven {
  33. url 'https://maven.aliyun.com/repository/central'
  34. }
  35. maven {
  36. url 'https://maven.aliyun.com/repository/google'
  37. }
  38. maven {
  39. url 'http://www.idescout.com/maven/repo/'
  40. name 'IDEScout, Inc.'
  41. }
  42. maven { url "https://jitpack.io" }
  43. // jcenter()
  44. // maven {
  45. // url 'https://maven.google.com/'
  46. // name 'Google'
  47. // }
  48. }
  49. gradle.taskGraph.whenReady {
  50. tasks.each { task ->
  51. if (task.name == 'mockableAndroidJar') {
  52. task.enabled = false
  53. }
  54. }
  55. }
  56. }
  57. //wuyq add for compile error end
  58. task clean(type: Delete) {
  59. delete rootProject.buildDir
  60. }