build.gradle 1.6 KB

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