build.gradle 3.9 KB

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