build.gradle 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // 万利达、高登
  2. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  3. buildscript {
  4. repositories {
  5. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  6. maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
  7. maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
  8. maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
  9. maven { url "https://jitpack.io" }
  10. google()
  11. jcenter()
  12. maven {
  13. url 'https://maven.google.com/'
  14. name 'Google'
  15. }
  16. }
  17. dependencies {
  18. //classpath 'com.android.tools.build:gradle:3.1.3'
  19. classpath 'com.android.tools.build:gradle:4.2.1'
  20. classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
  21. classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
  22. // classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.13'
  23. // NOTE: Do not place your application dependencies here; they belong
  24. // in the individual module build.gradle files
  25. }
  26. }
  27. allprojects {
  28. repositories {
  29. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  30. maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
  31. maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
  32. maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
  33. maven { url "https://jitpack.io" }
  34. google()
  35. jcenter()
  36. maven {
  37. url 'https://maven.google.com/'
  38. name 'Google'
  39. }
  40. maven { url "https://jitpack.io" }
  41. }
  42. }
  43. task clean(type: Delete) {
  44. delete rootProject.buildDir
  45. }
  46. ext {
  47. android = [
  48. minSdkVersion : 17,
  49. targetSdkVersion : 28,
  50. compileSdkVersion: 28,
  51. buildToolsVersion: "28.0.3",
  52. versionCode : 1,
  53. versionName : "v1.0.0"
  54. ]
  55. depsVersion = [
  56. junitVersion : "4.12",
  57. appcompatV7Version : "28.0.0",
  58. stethoVersion : "1.5.0",
  59. fastjsonVersion : "1.2.39",
  60. xUtilsVersion : "2.6.14",
  61. okhttpVersion : "3.9.0",
  62. switchViewVersion : "1.0.2",
  63. smartRefreshLayoutVersion : '1.0.5',
  64. BaseRecyclerViewAdapterHelperVersion: '2.9.30',
  65. permissonVersion : '2.0.0-rc12',
  66. basePopupVersion : '2.1.5',
  67. smartTableVersion : '2.2.0'
  68. ]
  69. deps = [
  70. junit : 'junit:junit:' + depsVersion.junitVersion,
  71. appcompatV7 : 'com.android.support:appcompat-v7:' + depsVersion.appcompatV7Version,
  72. stetho : 'com.facebook.stetho:stetho:' + depsVersion.stethoVersion,
  73. fastjson : 'com.alibaba:fastjson:' + depsVersion.fastjsonVersion,
  74. xUtils : 'com.jiechic.library:xUtils:' + depsVersion.xUtilsVersion,
  75. okhttp : 'com.squareup.okhttp3:okhttp:' + depsVersion.okhttpVersion,
  76. switchView : 'com.github.luongvo:iOS-SwitchView:' + depsVersion.switchViewVersion,
  77. smartRefreshLayout : 'com.scwang.smartrefresh:SmartRefreshLayout:' + depsVersion.smartRefreshLayoutVersion,
  78. smartRefreshHeader : 'com.scwang.smartrefresh:SmartRefreshHeader:' + depsVersion.smartRefreshLayoutVersion,
  79. BaseRecyclerViewAdapterHelper: 'com.github.CymChad:BaseRecyclerViewAdapterHelper:' + depsVersion.BaseRecyclerViewAdapterHelperVersion,
  80. recyclerview : 'com.android.support:recyclerview-v7:' + depsVersion.appcompatV7Version,
  81. permisson : 'com.yanzhenjie:permission:' + depsVersion.permissonVersion,
  82. basePopup : 'com.github.razerdp:BasePopup:' + depsVersion.basePopupVersion,
  83. smartTable : 'com.github.huangyanbin:SmartTable:' + depsVersion.smartTableVersion
  84. ]
  85. }