build.gradle 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. buildscript {
  2. // ext.kotlin_version = '1.7.10'
  3. repositories {
  4. google()
  5. mavenCentral()
  6. }
  7. dependencies {
  8. classpath 'com.android.tools.build:gradle:7.2.2'
  9. // classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  10. classpath 'com.google.gms:google-services:4.2.0'
  11. }
  12. }
  13. allprojects {
  14. repositories {
  15. google()
  16. mavenCentral()
  17. }
  18. }
  19. rootProject.buildDir = '../build'
  20. subprojects {
  21. project.buildDir = "${rootProject.buildDir}/${project.name}"
  22. }
  23. subprojects {
  24. project.evaluationDependsOn(':app')
  25. }
  26. subprojects {
  27. project.configurations.all {
  28. resolutionStrategy.eachDependency { details ->
  29. if (details.requested.group == 'androidx.exifinterface'
  30. && !details.requested.name.contains('multidex') ) {
  31. details.useVersion "1.0.0"
  32. }
  33. }
  34. }
  35. }
  36. subprojects {
  37. project.configurations.all {
  38. resolutionStrategy.eachDependency { details ->
  39. if (details.requested.group == 'androidx.core'
  40. && !details.requested.name.contains('multidex') ) {
  41. details.useVersion "1.0.2"
  42. }
  43. }
  44. }
  45. }
  46. task clean(type: Delete) {
  47. delete rootProject.buildDir
  48. }