build.gradle 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. //buildscript {
  2. // /**
  3. // * Kotlin统一版本
  4. // */
  5. // ext.kotlin_version = '1.3.21'
  6. //
  7. // /**
  8. // * Aop编制版本
  9. // */
  10. // ext.aspectj_version = '1.8.9'
  11. //
  12. // /**
  13. // * 是否开启单独Module编译
  14. // */
  15. // ext.componentTag = false
  16. //
  17. // /**
  18. // * 路由注解处理器版本
  19. // */
  20. // ext.router_version = '1.0.2'
  21. //
  22. // /**
  23. // * kawo组件化框架版本
  24. // */
  25. // ext.kawo_version = '1.0.9'
  26. //
  27. // /**
  28. // * SDK最小支持版本
  29. // */
  30. // ext.min_sdk_version = 17
  31. //
  32. // /**
  33. // * SDK目标支持版本
  34. // */
  35. // ext.target_sdk_version = 28
  36. //
  37. // /**
  38. // * SDK编译版本
  39. // */
  40. // ext.build_tools_version = "26.0.2"
  41. //
  42. // /**
  43. // * 支持库版本
  44. // */
  45. // ext.support_library_version = "26.0.1"
  46. //
  47. // /**
  48. // * APP版本码
  49. // */
  50. // ext.app_version_code = 1
  51. //
  52. // /**
  53. // * APP版本号
  54. // */
  55. // ext.app_version = "1.0"
  56. //
  57. // /**
  58. // * 项目依赖库
  59. // */
  60. // dependencies {
  61. // repositories {
  62. // jcenter()
  63. // mavenCentral()
  64. // google()
  65. // /**
  66. // * 依赖仓储
  67. // */
  68. // maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
  69. // maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
  70. // maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  71. // maven { url 'https://jitpack.io' }
  72. // }
  73. // /**
  74. // * Gradle插件
  75. // */
  76. // classpath 'com.android.tools.build:gradle:3.0.1'
  77. //
  78. // /**
  79. // * Kawo组件化插件
  80. // */
  81. // classpath "com.enation.geamtear.gradle:kawo:$kawo_version"
  82. //
  83. // /**
  84. // * KotlinGradle插件
  85. // */
  86. // classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  87. //
  88. // /**
  89. // * Kotlin辅助工具
  90. // */
  91. // classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
  92. //
  93. // /**
  94. // * Aop埋点相关
  95. // */
  96. // classpath "org.aspectj:aspectjtools:$aspectj_version"
  97. // }
  98. //}
  99. ///**
  100. // * 统一依赖仓储
  101. // */
  102. //allprojects {
  103. // repositories {
  104. // jcenter()
  105. // mavenCentral()
  106. // google()
  107. //
  108. // maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
  109. // maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
  110. // maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  111. // maven { url 'https://jitpack.io' }
  112. // }
  113. // tasks.withType(Javadoc) { // 新增
  114. // options.addStringOption('Xdoclint:none', '-quiet')
  115. // options.addStringOption('encoding', 'UTF-8')
  116. // }
  117. //}
  118. //
  119. ///**
  120. // * 清除Build配置时 删除根目录Build文件夹
  121. // */
  122. //task clean(type: Delete) {
  123. // delete rootProject.buildDir
  124. //}
  125. buildscript {
  126. /**
  127. * Kotlin统一版本
  128. */
  129. ext.kotlin_version = '1.2.40'
  130. /**
  131. * Aop编制版本
  132. */
  133. ext.aspectj_version = '1.8.9'
  134. /**
  135. * 是否开启单独Module编译
  136. */
  137. ext.componentTag = false
  138. /**
  139. * 路由注解处理器版本
  140. */
  141. ext.router_version = '1.0.2'
  142. /**
  143. * kawo组件化框架版本
  144. */
  145. ext.kawo_version = '1.0.9'
  146. /**
  147. * SDK最小支持版本
  148. */
  149. ext.min_sdk_version = 24
  150. /**
  151. * SDK目标支持版本
  152. */
  153. ext.target_sdk_version = 28
  154. /**
  155. * SDK编译版本
  156. */
  157. ext.build_tools_version = "26.0.2"
  158. /**
  159. * 支持库版本
  160. */
  161. ext.support_library_version = "26.0.1"
  162. /**
  163. * APP版本码
  164. */
  165. ext.app_version_code = 1
  166. /**
  167. * APP版本号
  168. */
  169. ext.app_version = "1.0"
  170. /**
  171. * 项目依赖库
  172. */
  173. dependencies {
  174. repositories {
  175. /**
  176. * 依赖仓储
  177. */
  178. jcenter()
  179. mavenCentral()
  180. google()
  181. }
  182. /**
  183. * Gradle插件
  184. */
  185. classpath 'com.android.tools.build:gradle:3.0.1'
  186. /**
  187. * Kawo组件化插件
  188. */
  189. classpath "com.enation.geamtear.gradle:kawo:$kawo_version"
  190. /**
  191. * KotlinGradle插件
  192. */
  193. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  194. /**
  195. * Kotlin辅助工具
  196. */
  197. classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
  198. /**
  199. * Aop埋点相关
  200. */
  201. classpath "org.aspectj:aspectjtools:$aspectj_version"
  202. }
  203. repositories {
  204. google()
  205. }
  206. }
  207. /**
  208. * 统一依赖仓储
  209. */
  210. allprojects {
  211. repositories {
  212. jcenter()
  213. mavenCentral()
  214. google()
  215. maven { url 'https://dl.bintray.com/geamtear/maven' }
  216. maven { url "https://jitpack.io" }
  217. }
  218. }
  219. /**
  220. * 清除Build配置时 删除根目录Build文件夹
  221. */
  222. task clean(type: Delete) {
  223. delete rootProject.buildDir
  224. }