build.gradle 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. repositories {
  6. maven { url 'http://maven.aliyun.com/nexus/content/repositories/releases/' }
  7. maven { url 'https://developer.huawei.com/repo/' }
  8. maven { url 'https://jitpack.io' }
  9. maven { url 'https://repo1.maven.org/maven2/' }
  10. jcenter()
  11. mavenCentral()
  12. google()
  13. }
  14. dependencies {
  15. classpath 'com.android.tools.build:gradle:3.4.1'
  16. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"// add plugin
  17. classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.3'
  18. classpath "com.alibaba:arouter-register:1.0.2"
  19. // NOTE: Do not place your application dependencies here; they belong
  20. // in the individual module build.gradle files
  21. }
  22. }
  23. allprojects {
  24. repositories {
  25. maven { url 'http://maven.aliyun.com/nexus/content/repositories/releases/' }
  26. maven { url 'https://developer.huawei.com/repo/' }
  27. maven { url 'https://jitpack.io' }
  28. maven { url 'https://repo1.maven.org/maven2/' }
  29. jcenter()
  30. mavenCentral()
  31. google()
  32. }
  33. }
  34. ext {
  35. compileSdkVersion = 29
  36. buildToolsVersion = '29.0.3'
  37. minSdkVersion = 21
  38. targetSdkVersion = 29
  39. appTargetSdkVersion = 29
  40. versionCode = 1123
  41. versionName = '11.2.3'
  42. sdkSourceCompatibility = 1.8
  43. sdkTargetCompatibility = 1.8
  44. appSourceCompatibility = 1.8
  45. appTargetCompatibility = 1.8
  46. support = '28.0.0'
  47. constraint = '1.1.3'
  48. eventbus = '3.2.0'
  49. chadAdapter = '2.9.50'
  50. smartRefresh = '2.0.3'
  51. glide = '4.2.0'
  52. }
  53. task clean(type: Delete) {
  54. delete rootProject.buildDir
  55. }