build.gradle 4.6 KB

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