build.gradle 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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 {url "https://jitpack.io" }
  51. }
  52. }
  53. task clean(type: Delete) {
  54. delete rootProject.buildDir
  55. }
  56. ext {
  57. android = [
  58. minSdkVersion : 16,
  59. targetSdkVersion : 28,
  60. compileSdkVersion: 28,
  61. buildToolsVersion: "28.0.3",
  62. versionCode : 11,
  63. versionName : "v1.0.1"
  64. ]
  65. depsVersion = [
  66. junitVersion : "4.12",
  67. appcompatV7Version : "28.0.0",
  68. stethoVersion : "1.5.0",
  69. fastjsonVersion : "1.2.39",
  70. xUtilsVersion : "2.6.14",
  71. okhttpVersion : "3.9.0",
  72. smartRefreshLayoutVersion : '1.0.5',
  73. BaseRecyclerViewAdapterHelperVersion: '2.9.30',
  74. smartTableVersion : '2.2.0',
  75. basePopupVersion : '2.1.5',
  76. permissonVersion : '2.0.0-rc12',
  77. switchViewVersion : "1.0.2",
  78. multiTypeFilePickerVersion : '1.0.8'
  79. ]
  80. deps = [
  81. junit : 'junit:junit:' + depsVersion.junitVersion,
  82. appcompatV7 : 'com.android.support:appcompat-v7:' + depsVersion.appcompatV7Version,
  83. stetho : 'com.facebook.stetho:stetho:' + depsVersion.stethoVersion,
  84. fastjson : 'com.alibaba:fastjson:' + depsVersion.fastjsonVersion,
  85. xUtils : 'com.jiechic.library:xUtils:' + depsVersion.xUtilsVersion,
  86. okhttp : 'com.squareup.okhttp3:okhttp:' + depsVersion.okhttpVersion,
  87. switchView : 'com.github.luongvo:iOS-SwitchView:' + depsVersion.switchViewVersion,
  88. smartRefreshLayout : 'com.scwang.smartrefresh:SmartRefreshLayout:' + depsVersion.smartRefreshLayoutVersion,
  89. smartRefreshHeader : 'com.scwang.smartrefresh:SmartRefreshHeader:' + depsVersion.smartRefreshLayoutVersion,
  90. BaseRecyclerViewAdapterHelper: 'com.github.CymChad:BaseRecyclerViewAdapterHelper:' + depsVersion.BaseRecyclerViewAdapterHelperVersion,
  91. smartTable : 'com.github.huangyanbin:SmartTable:' + depsVersion.smartTableVersion,
  92. basePopup : 'com.github.razerdp:BasePopup:' + depsVersion.basePopupVersion,
  93. permisson : 'com.yanzhenjie:permission:' + depsVersion.permissonVersion,
  94. recyclerview : 'com.android.support:recyclerview-v7:' + depsVersion.appcompatV7Version,
  95. MultiTypeFilePicker : 'com.vincent.filepicker:MultiTypeFilePicker:' + depsVersion.multiTypeFilePickerVersion,
  96. ]
  97. }