build.gradle 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. ext.kotlin_version = "1.7.10"
  4. repositories {
  5. google()
  6. maven {
  7. allowInsecureProtocol = true
  8. url 'https://jitpack.io'
  9. }
  10. mavenCentral()
  11. maven {
  12. allowInsecureProtocol = true
  13. url "https://mirrors.tencent.com/nexus/repository/maven-public/"
  14. }
  15. maven {
  16. allowInsecureProtocol = true
  17. url 'http://maven.faceunity.com/repository/maven-public/'
  18. }
  19. }
  20. dependencies {
  21. classpath "com.android.tools.build:gradle:7.2.1"
  22. classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10'
  23. classpath 'com.google.gms:google-services:4.3.10'
  24. classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'
  25. classpath 'com.google.firebase:perf-plugin:1.4.1'
  26. classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0' // 添加插件 更好支持GreenDao
  27. // NOTE: Do not place your application dependencies here; they belong
  28. // in the individual module build.gradle files
  29. }
  30. }
  31. allprojects {
  32. repositories {
  33. flatDir {
  34. dirs project(':room').file('libs')
  35. }
  36. google()
  37. maven {
  38. allowInsecureProtocol = true
  39. url 'https://jitpack.io'
  40. }
  41. mavenCentral()
  42. maven {
  43. allowInsecureProtocol = true
  44. url "https://mirrors.tencent.com/nexus/repository/maven-public/"
  45. }
  46. maven {
  47. allowInsecureProtocol = true
  48. url 'http://maven.faceunity.com/repository/maven-public/'
  49. }
  50. }
  51. configurations.all{
  52. resolutionStrategy{
  53. force 'com.squareup.okhttp3:okhttp:4.9.1'
  54. }
  55. }
  56. }
  57. task clean(type: Delete) {
  58. delete rootProject.buildDir
  59. }