build.gradle 4.1 KB

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