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