build.gradle 4.4 KB

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