build.gradle 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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:3.1.3'
  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 : 16,
  45. targetSdkVersion : 28,
  46. compileSdkVersion: 28,
  47. buildToolsVersion: "28.0.3",
  48. versionCode : 19,
  49. versionName : "v3.5"
  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. ]
  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. ]
  79. }