build.gradle 3.9 KB

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