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. mavenCentral()
  11. google()
  12. jcenter()
  13. maven {
  14. url 'https://maven.google.com/'
  15. name 'Google'
  16. }
  17. }
  18. dependencies {
  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. mavenCentral()
  35. google()
  36. jcenter()
  37. maven {
  38. url 'https://maven.google.com/'
  39. name 'Google'
  40. }
  41. maven { url "https://jitpack.io" }
  42. }
  43. }
  44. task clean(type: Delete) {
  45. delete rootProject.buildDir
  46. }
  47. ext {
  48. android = [
  49. minSdkVersion : 16,
  50. targetSdkVersion : 28,
  51. compileSdkVersion: 28,
  52. buildToolsVersion: "28.0.3",
  53. versionCode : 24,
  54. versionName : "v2.4"
  55. ]
  56. depsVersion = [
  57. junitVersion : "4.12",
  58. appcompatV7Version : "28.0.0",
  59. stethoVersion : "1.5.0",
  60. fastjsonVersion : "1.2.39",
  61. xUtilsVersion : "2.6.14",
  62. okhttpVersion : "3.9.0",
  63. switchViewVersion : "1.0.2",
  64. smartRefreshLayoutVersion : '1.0.5',
  65. BaseRecyclerViewAdapterHelperVersion: '2.9.30',
  66. permissonVersion : '2.0.0-rc12',
  67. basePopupVersion : '2.1.5',
  68. smartTableVersion : '2.2.0'
  69. ]
  70. deps = [
  71. junit : 'junit:junit:' + depsVersion.junitVersion,
  72. appcompatV7 : 'com.android.support:appcompat-v7:' + depsVersion.appcompatV7Version,
  73. stetho : 'com.facebook.stetho:stetho:' + depsVersion.stethoVersion,
  74. fastjson : 'com.alibaba:fastjson:' + depsVersion.fastjsonVersion,
  75. xUtils : 'com.jiechic.library:xUtils:' + depsVersion.xUtilsVersion,
  76. okhttp : 'com.squareup.okhttp3:okhttp:' + depsVersion.okhttpVersion,
  77. switchView : 'com.github.luongvo:iOS-SwitchView:' + depsVersion.switchViewVersion,
  78. smartRefreshLayout : 'com.scwang.smartrefresh:SmartRefreshLayout:' + depsVersion.smartRefreshLayoutVersion,
  79. smartRefreshHeader : 'com.scwang.smartrefresh:SmartRefreshHeader:' + depsVersion.smartRefreshLayoutVersion,
  80. BaseRecyclerViewAdapterHelper: 'com.github.CymChad:BaseRecyclerViewAdapterHelper:' + depsVersion.BaseRecyclerViewAdapterHelperVersion,
  81. recyclerview : 'com.android.support:recyclerview-v7:' + depsVersion.appcompatV7Version,
  82. permisson : 'com.yanzhenjie:permission:' + depsVersion.permissonVersion,
  83. basePopup : 'com.github.razerdp:BasePopup:' + depsVersion.basePopupVersion,
  84. smartTable : 'com.github.huangyanbin:SmartTable:' + depsVersion.smartTableVersion
  85. ]
  86. }