build.gradle 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 : 7,
  53. versionName : "v2.5"
  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. permissonVersion : '2.0.0-rc12',
  65. smartTableVersion : '2.2.0',
  66. basePopupVersion : '2.1.5'
  67. ]
  68. deps = [
  69. junit : 'junit:junit:' + depsVersion.junitVersion,
  70. appcompatV7 : 'com.android.support:appcompat-v7:' + depsVersion.appcompatV7Version,
  71. stetho : 'com.facebook.stetho:stetho:' + depsVersion.stethoVersion,
  72. fastjson : 'com.alibaba:fastjson:' + depsVersion.fastjsonVersion,
  73. xUtils : 'com.jiechic.library:xUtils:' + depsVersion.xUtilsVersion,
  74. okhttp : 'com.squareup.okhttp3:okhttp:' + depsVersion.okhttpVersion,
  75. recyclerview : 'com.android.support:recyclerview-v7:' + depsVersion.appcompatV7Version,
  76. smartRefreshLayout : 'com.scwang.smartrefresh:SmartRefreshLayout:' + depsVersion.smartRefreshLayoutVersion,
  77. smartRefreshHeader : 'com.scwang.smartrefresh:SmartRefreshHeader:' + depsVersion.smartRefreshLayoutVersion,
  78. BaseRecyclerViewAdapterHelper: 'com.github.CymChad:BaseRecyclerViewAdapterHelper:' + depsVersion.BaseRecyclerViewAdapterHelperVersion,
  79. permisson : 'com.yanzhenjie:permission:' + depsVersion.permissonVersion,
  80. smartTable : 'com.github.huangyanbin:SmartTable:' + depsVersion.smartTableVersion,
  81. basePopup : 'com.github.razerdp:BasePopup:' + depsVersion.basePopupVersion
  82. ]
  83. }