build.gradle 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
  10. // NOTE: Do not place your application dependencies here; they belong
  11. // in the individual module build.gradle files
  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. buildToolsVersion = localBuildToolsVersion
  33. compileSdkVersion = 25
  34. minSdkVersion = 15
  35. targetSdkVersion = 25
  36. versionCode = 1
  37. versionName = "1.0"
  38. javaVersion = JavaVersion.VERSION_1_8
  39. // App dependencies version
  40. supportLibraryVersion = "25.3.0"
  41. retrofitVersion = "2.1.0"
  42. glideVersion = "3.7.0"
  43. loggerVersion = "1.15"
  44. eventbusVersion = "3.0.0"
  45. gsonVersion = "2.8.0"
  46. //不成熟开源库,需经常检查升级版本
  47. aptCompilerVersion = "1.1.7"
  48. routerVersion = "1.2.2"
  49. easyRecyclerVersion = "4.3.8"
  50. cookieVersion = "v1.0.1"
  51. }