build.gradle 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. google()
  5. jcenter()
  6. maven {
  7. url 'https://maven.google.com/'
  8. name 'Google'
  9. }
  10. }
  11. dependencies {
  12. classpath 'com.android.tools.build:gradle:3.1.3'
  13. classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
  14. classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
  15. // NOTE: Do not place your application dependencies here; they belong
  16. // in the individual module build.gradle files
  17. }
  18. }
  19. allprojects {
  20. repositories {
  21. google()
  22. jcenter()
  23. maven {
  24. url 'https://maven.google.com/'
  25. name 'Google'
  26. }
  27. maven { url "https://jitpack.io" }
  28. }
  29. }
  30. task clean(type: Delete) {
  31. delete rootProject.buildDir
  32. }
  33. ext {
  34. android = [
  35. minSdkVersion : 16,
  36. targetSdkVersion : 28,
  37. compileSdkVersion: 28,
  38. buildToolsVersion: "28.0.3",
  39. versionCode : 4,
  40. versionName : "v2.2"
  41. ]
  42. depsVersion = [
  43. junitVersion : "4.12",
  44. appcompatV7Version : "28.0.0",
  45. stethoVersion : "1.5.0",
  46. fastjsonVersion : "1.2.39",
  47. xUtilsVersion : "2.6.14",
  48. okhttpVersion : "3.9.0",
  49. permissonVersion : '2.0.0-rc12',
  50. basePopupVersion : '2.1.5',
  51. BaseRecyclerViewAdapterHelperVersion: '2.9.30',
  52. ]
  53. deps = [
  54. junit : 'junit:junit:' + depsVersion.junitVersion,
  55. appcompatV7 : 'com.android.support:appcompat-v7:' + depsVersion.appcompatV7Version,
  56. stetho : 'com.facebook.stetho:stetho:' + depsVersion.stethoVersion,
  57. fastjson : 'com.alibaba:fastjson:' + depsVersion.fastjsonVersion,
  58. xUtils : 'com.jiechic.library:xUtils:' + depsVersion.xUtilsVersion,
  59. okhttp : 'com.squareup.okhttp3:okhttp:' + depsVersion.okhttpVersion,
  60. recyclerview : 'com.android.support:recyclerview-v7:' + depsVersion.appcompatV7Version,
  61. permisson : 'com.yanzhenjie:permission:' + depsVersion.permissonVersion,
  62. basePopup : 'com.github.razerdp:BasePopup:' + depsVersion.basePopupVersion,
  63. BaseRecyclerViewAdapterHelper: 'com.github.CymChad:BaseRecyclerViewAdapterHelper:' + depsVersion.BaseRecyclerViewAdapterHelperVersion,
  64. ]
  65. }