build.gradle 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  5. maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
  6. maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
  7. maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
  8. maven { url "https://jitpack.io" }
  9. mavenCentral()
  10. google()
  11. jcenter()
  12. maven {
  13. url 'https://maven.google.com/'
  14. name 'Google'
  15. }
  16. }
  17. dependencies {
  18. classpath 'com.android.tools.build:gradle:3.1.3'
  19. classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
  20. classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
  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 : 36,
  51. versionName : "v3.3.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. permissonVersion : '2.0.0-rc12',
  61. basePopupVersion : '2.1.5',
  62. BaseRecyclerViewAdapterHelperVersion: '2.9.30',
  63. smartTableVersion : '2.2.0',
  64. ]
  65. deps = [
  66. junit : 'junit:junit:' + depsVersion.junitVersion,
  67. appcompatV7 : 'com.android.support:appcompat-v7:' + depsVersion.appcompatV7Version,
  68. stetho : 'com.facebook.stetho:stetho:' + depsVersion.stethoVersion,
  69. fastjson : 'com.alibaba:fastjson:' + depsVersion.fastjsonVersion,
  70. xUtils : 'com.jiechic.library:xUtils:' + depsVersion.xUtilsVersion,
  71. okhttp : 'com.squareup.okhttp3:okhttp:' + depsVersion.okhttpVersion,
  72. recyclerview : 'com.android.support:recyclerview-v7:' + depsVersion.appcompatV7Version,
  73. permisson : 'com.yanzhenjie:permission:' + depsVersion.permissonVersion,
  74. basePopup : 'com.github.razerdp:BasePopup:' + depsVersion.basePopupVersion,
  75. BaseRecyclerViewAdapterHelper: 'com.github.CymChad:BaseRecyclerViewAdapterHelper:' + depsVersion.BaseRecyclerViewAdapterHelperVersion,
  76. smartTable : 'com.github.huangyanbin:SmartTable:' + depsVersion.smartTableVersion,
  77. ]
  78. }