build.gradle 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. apply plugin: 'com.jakewharton.butterknife'
  3. buildscript {
  4. ext.kotlin_version = '1.3.72'
  5. ext.butterknife = '9.0.0'
  6. repositories {
  7. maven { url 'http://maven.aliyun.com/nexus/content/repositories/releases/' }
  8. maven { url 'https://developer.huawei.com/repo/' }
  9. maven { url 'https://jitpack.io' }
  10. maven { url 'https://repo1.maven.org/maven2/' }
  11. jcenter()
  12. mavenCentral()
  13. google()
  14. }
  15. dependencies {
  16. classpath 'com.android.tools.build:gradle:3.4.1'
  17. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"// add plugin
  18. classpath "com.jakewharton:butterknife-gradle-plugin:${butterknife}"
  19. classpath "com.alibaba:arouter-register:1.0.2"
  20. classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0'
  21. // NOTE: Do not place your application dependencies here; they belong
  22. // in the individual module build.gradle files
  23. }
  24. }
  25. allprojects {
  26. repositories {
  27. maven { url 'http://maven.aliyun.com/nexus/content/repositories/releases/' }
  28. maven { url 'https://developer.huawei.com/repo/' }
  29. maven { url 'https://jitpack.io' }
  30. maven { url 'https://repo1.maven.org/maven2/' }
  31. jcenter()
  32. mavenCentral()
  33. google()
  34. }
  35. }
  36. ext {
  37. compileSdkVersion = 29
  38. buildToolsVersion = '29.0.3'
  39. minSdkVersion = 21
  40. targetSdkVersion = 29
  41. appTargetSdkVersion = 29
  42. versionCode = 1123
  43. versionName = '11.2.3'
  44. sdkSourceCompatibility = 1.8
  45. sdkTargetCompatibility = 1.8
  46. appSourceCompatibility = 1.8
  47. appTargetCompatibility = 1.8
  48. support = '28.0.0'
  49. constraint = '1.1.3'
  50. eventbus = '3.2.0'
  51. chadAdapter = '2.9.50'
  52. smartRefresh = '2.0.3'
  53. glide = '4.2.0'
  54. butterknife = '9.0.0'
  55. //true 作为模块运行 false 作为独立APP运行
  56. isDebtModule = true
  57. }
  58. task clean(type: Delete) {
  59. delete rootProject.buildDir
  60. }