build.gradle 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. ext.kotlin_version = "1.5.21"
  4. repositories {
  5. google()
  6. maven { url 'https://jitpack.io' }
  7. mavenCentral()
  8. maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" }
  9. maven { url 'http://maven.faceunity.com/repository/maven-public/' }
  10. }
  11. dependencies {
  12. classpath "com.android.tools.build:gradle:4.2.2"
  13. classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30'
  14. classpath 'com.google.gms:google-services:4.3.10'
  15. classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'
  16. classpath 'com.google.firebase:perf-plugin:1.4.0'
  17. // NOTE: Do not place your application dependencies here; they belong
  18. // in the individual module build.gradle files
  19. }
  20. }
  21. allprojects {
  22. repositories {
  23. flatDir {
  24. dirs project(':room').file('libs')
  25. }
  26. google()
  27. maven { url 'https://jitpack.io' }
  28. mavenCentral()
  29. maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" }
  30. maven { url 'http://maven.faceunity.com/repository/maven-public/' }
  31. }
  32. configurations.all{
  33. resolutionStrategy{
  34. force 'com.squareup.okhttp3:okhttp:4.9.1'
  35. }
  36. }
  37. }
  38. task clean(type: Delete) {
  39. delete rootProject.buildDir
  40. }