build.gradle 838 B

12345678910111213141516171819202122232425262728293031323334353637
  1. buildscript {
  2. ext.kotlin_version = '1.9.20'
  3. repositories {
  4. google()
  5. mavenCentral()
  6. //[huawei1]
  7. // maven {url 'https://developer.huawei.com/repo/'}
  8. }
  9. dependencies {
  10. classpath 'com.android.tools.build:gradle:7.1.2'
  11. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  12. //[huawei2]
  13. // classpath 'com.huawei.agconnect:agcp:1.9.1.301'
  14. }
  15. }
  16. allprojects {
  17. repositories {
  18. google()
  19. mavenCentral()
  20. //[huawei3]
  21. // maven {url 'https://developer.huawei.com/repo/'}
  22. }
  23. }
  24. rootProject.buildDir = '../build'
  25. subprojects {
  26. project.buildDir = "${rootProject.buildDir}/${project.name}"
  27. }
  28. subprojects {
  29. project.evaluationDependsOn(':app')
  30. }
  31. tasks.register("clean", Delete) {
  32. delete rootProject.buildDir
  33. }