build.gradle 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 : 16,
  38. targetSdkVersion : 28,
  39. compileSdkVersion: 28,
  40. buildToolsVersion: "28.0.3",
  41. versionCode : 1,
  42. versionName : "v1.0"
  43. ]
  44. depsVersion = [
  45. junitVersion : "4.12",
  46. appcompatV7Version : "28.0.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. permissonVersion : '2.0.0-rc12',
  54. smartTableVersion : '2.2.0',
  55. basePopupVersion : '2.1.5'
  56. ]
  57. deps = [
  58. junit : 'junit:junit:' + depsVersion.junitVersion,
  59. appcompatV7 : 'com.android.support:appcompat-v7:' + depsVersion.appcompatV7Version,
  60. stetho : 'com.facebook.stetho:stetho:' + depsVersion.stethoVersion,
  61. fastjson : 'com.alibaba:fastjson:' + depsVersion.fastjsonVersion,
  62. xUtils : 'com.jiechic.library:xUtils:' + depsVersion.xUtilsVersion,
  63. okhttp : 'com.squareup.okhttp3:okhttp:' + depsVersion.okhttpVersion,
  64. recyclerview : 'com.android.support:recyclerview-v7:' + depsVersion.appcompatV7Version,
  65. smartRefreshLayout : 'com.scwang.smartrefresh:SmartRefreshLayout:' + depsVersion.smartRefreshLayoutVersion,
  66. smartRefreshHeader : 'com.scwang.smartrefresh:SmartRefreshHeader:' + depsVersion.smartRefreshLayoutVersion,
  67. BaseRecyclerViewAdapterHelper: 'com.github.CymChad:BaseRecyclerViewAdapterHelper:' + depsVersion.BaseRecyclerViewAdapterHelperVersion,
  68. permisson : 'com.yanzhenjie:permission:' + depsVersion.permissonVersion,
  69. smartTable : 'com.github.huangyanbin:SmartTable:' + depsVersion.smartTableVersion,
  70. basePopup : 'com.github.razerdp:BasePopup:' + depsVersion.basePopupVersion
  71. ]
  72. }