build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
  12. }
  13. }
  14. allprojects {
  15. repositories {
  16. jcenter()
  17. mavenCentral()
  18. //Add the JitPack repository
  19. maven { url "https://jitpack.io" }
  20. //支持arr包
  21. flatDir {
  22. dirs 'libs'
  23. }
  24. }
  25. }
  26. task clean(type: Delete) {
  27. delete rootProject.buildDir
  28. }
  29. // Define versions in a single place
  30. ext {
  31. // Sdk and tools
  32. //localBuildToolsVersion是gradle.properties中的数据
  33. buildToolsVersion = localBuildToolsVersion
  34. compileSdkVersion = 25
  35. minSdkVersion = 15
  36. targetSdkVersion = 25
  37. versionCode = 1
  38. versionName = "1.0"
  39. javaVersion = JavaVersion.VERSION_1_8
  40. // App dependencies version
  41. supportLibraryVersion = "25.3.0"
  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. //不成熟开源库,需经常检查升级版本
  48. aptCompilerVersion = "1.1.7"
  49. routerVersion = "1.2.2"
  50. easyRecyclerVersion = "4.4.0"
  51. cookieVersion = "v1.0.1"
  52. }