build.gradle 4.4 KB

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