build.gradle 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. // ext.kotlin_version = '1.2.30'
  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 'org.greenrobot:greendao-gradle-plugin:3.2.2'
  21. classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
  22. classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
  23. // classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  24. // NOTE: Do not place your application dependencies here; they belong
  25. // in the individual module build.gradle files
  26. }
  27. }
  28. allprojects {
  29. repositories {
  30. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  31. maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
  32. maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
  33. maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
  34. maven { url "https://jitpack.io" }
  35. mavenCentral()
  36. google()
  37. jcenter()
  38. maven {
  39. url 'https://maven.google.com/'
  40. name 'Google'
  41. }
  42. }
  43. }
  44. task clean(type: Delete) {
  45. delete rootProject.buildDir
  46. }
  47. ext {
  48. android = [
  49. minSdkVersion : 17,
  50. targetSdkVersion : 28,
  51. compileSdkVersion: 28,
  52. buildToolsVersion: "28.0.3",
  53. versionCode : 13,
  54. versionName : "v1.0.3"
  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. smartRefreshLayoutVersion : '1.0.5',
  64. BaseRecyclerViewAdapterHelperVersion: '2.9.30',
  65. smartTableVersion : '2.2.0',
  66. basePopupVersion : '2.1.5',
  67. permissonVersion : '2.0.0-rc12',
  68. switchViewVersion : "1.0.2",
  69. multiTypeFilePickerVersion : '1.0.8'
  70. ]
  71. deps = [
  72. junit : 'junit:junit:' + depsVersion.junitVersion,
  73. appcompatV7 : 'com.android.support:appcompat-v7:' + depsVersion.appcompatV7Version,
  74. stetho : 'com.facebook.stetho:stetho:' + depsVersion.stethoVersion,
  75. fastjson : 'com.alibaba:fastjson:' + depsVersion.fastjsonVersion,
  76. xUtils : 'com.jiechic.library:xUtils:' + depsVersion.xUtilsVersion,
  77. okhttp : 'com.squareup.okhttp3:okhttp:' + depsVersion.okhttpVersion,
  78. switchView : 'com.github.luongvo:iOS-SwitchView:' + depsVersion.switchViewVersion,
  79. smartRefreshLayout : 'com.scwang.smartrefresh:SmartRefreshLayout:' + depsVersion.smartRefreshLayoutVersion,
  80. smartRefreshHeader : 'com.scwang.smartrefresh:SmartRefreshHeader:' + depsVersion.smartRefreshLayoutVersion,
  81. BaseRecyclerViewAdapterHelper: 'com.github.CymChad:BaseRecyclerViewAdapterHelper:' + depsVersion.BaseRecyclerViewAdapterHelperVersion,
  82. smartTable : 'com.github.huangyanbin:SmartTable:' + depsVersion.smartTableVersion,
  83. basePopup : 'com.github.razerdp:BasePopup:' + depsVersion.basePopupVersion,
  84. permisson : 'com.yanzhenjie:permission:' + depsVersion.permissonVersion,
  85. recyclerview : 'com.android.support:recyclerview-v7:' + depsVersion.appcompatV7Version,
  86. MultiTypeFilePicker : 'com.vincent.filepicker:MultiTypeFilePicker:' + depsVersion.multiTypeFilePickerVersion,
  87. ]
  88. }