build.gradle 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. google()
  6. jcenter()
  7. maven {
  8. url 'https://maven.google.com/'
  9. name 'Google'
  10. }
  11. }
  12. dependencies {
  13. classpath 'com.android.tools.build:gradle:3.1.3'
  14. classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
  15. classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
  16. // classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  17. // NOTE: Do not place your application dependencies here; they belong
  18. // in the individual module build.gradle files
  19. }
  20. }
  21. allprojects {
  22. repositories {
  23. google()
  24. jcenter()
  25. maven {
  26. url 'https://maven.google.com/'
  27. name 'Google'
  28. }
  29. maven { url "https://jitpack.io" }
  30. }
  31. }
  32. task clean(type: Delete) {
  33. delete rootProject.buildDir
  34. }
  35. ext {
  36. android = [
  37. minSdkVersion : 14,
  38. targetSdkVersion : 27,
  39. compileSdkVersion: 27,
  40. buildToolsVersion: "27.0.3",
  41. versionCode : 1,
  42. versionName : "v1.0"
  43. ]
  44. depsVersion = [
  45. junitVersion : "4.12",
  46. appcompatV7Version : "26.1.0",
  47. stethoVersion : "1.5.0",
  48. fastjsonVersion : "1.2.39",
  49. xUtilsVersion : "2.6.14",
  50. okhttpVersion : "3.9.0",
  51. smartRefreshLayoutVersion : '1.0.5',
  52. BaseRecyclerViewAdapterHelperVersion: '2.9.30'
  53. ]
  54. deps = [
  55. junit : 'junit:junit:' + depsVersion.junitVersion,
  56. appcompatV7 : 'com.android.support:appcompat-v7:' + depsVersion.appcompatV7Version,
  57. stetho : 'com.facebook.stetho:stetho:' + depsVersion.stethoVersion,
  58. fastjson : 'com.alibaba:fastjson:' + depsVersion.fastjsonVersion,
  59. xUtils : 'com.jiechic.library:xUtils:' + depsVersion.xUtilsVersion,
  60. okhttp : 'com.squareup.okhttp3:okhttp:' + depsVersion.okhttpVersion,
  61. smartRefreshLayout : 'com.scwang.smartrefresh:SmartRefreshLayout:' + depsVersion.smartRefreshLayoutVersion,
  62. smartRefreshHeader : 'com.scwang.smartrefresh:SmartRefreshHeader:' + depsVersion.smartRefreshLayoutVersion,
  63. BaseRecyclerViewAdapterHelper: 'com.github.CymChad:BaseRecyclerViewAdapterHelper:' + depsVersion.BaseRecyclerViewAdapterHelperVersion
  64. ]
  65. }