build.gradle 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. jcenter()
  5. mavenCentral()
  6. }
  7. dependencies {
  8. //classpath "com.android.tools.build:gradle:$localGradlePluginVersion"
  9. //$localGradlePluginVersion是gradle.properties中的数据
  10. classpath "com.android.tools.build:gradle:$localGradlePluginVersion"
  11. }
  12. }
  13. allprojects {
  14. repositories {
  15. jcenter()
  16. mavenCentral()
  17. //Add the JitPack repository
  18. maven { url "https://jitpack.io" }
  19. //支持arr包
  20. flatDir {
  21. dirs 'libs'
  22. }
  23. }
  24. }
  25. task clean(type: Delete) {
  26. delete rootProject.buildDir
  27. }
  28. // Define versions in a single place
  29. //时间:2017.2.13;每次修改版本号都要添加修改时间
  30. ext {
  31. // Sdk and tools
  32. //localBuildToolsVersion是gradle.properties中的数据
  33. buildToolsVersion = localBuildToolsVersion
  34. compileSdkVersion = 25
  35. minSdkVersion = 16
  36. targetSdkVersion = 25
  37. versionCode = 1
  38. versionName = "1.0"
  39. javaVersion = JavaVersion.VERSION_1_8
  40. // App dependencies version
  41. supportLibraryVersion = "25.3.1"
  42. retrofitVersion = "2.1.0"
  43. glideVersion = "3.7.0"
  44. loggerVersion = "1.15"
  45. eventbusVersion = "3.0.0"
  46. gsonVersion = "2.8.0"
  47. photoViewVersion = "2.0.0"
  48. //需检查升级版本
  49. annotationProcessor = "1.1.7"
  50. routerVersion = "1.2.2"
  51. easyRecyclerVersion = "4.4.0"
  52. cookieVersion = "v1.0.1"
  53. toastyVersion = "1.1.3"
  54. }