build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. buildscript {
  2. ext.kotlin_version = '1.6.10'
  3. repositories {
  4. mavenCentral()
  5. maven { url 'https://maven.aliyun.com/repository/central' }
  6. maven { url 'https://maven.aliyun.com/repository/public' }
  7. maven { url 'https://maven.aliyun.com/repository/google' }
  8. maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
  9. // google()
  10. // mavenCentral()
  11. }
  12. dependencies {
  13. classpath 'com.android.tools.build:gradle:4.1.3'
  14. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  15. }
  16. }
  17. allprojects {
  18. repositories {
  19. mavenCentral()
  20. maven { url 'https://maven.aliyun.com/repository/central' }
  21. maven { url 'https://maven.aliyun.com/repository/public' }
  22. maven { url 'https://maven.aliyun.com/repository/google' }
  23. maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
  24. // google()
  25. // mavenCentral()
  26. }
  27. }
  28. rootProject.buildDir = '../build'
  29. subprojects {
  30. project.buildDir = "${rootProject.buildDir}/${project.name}"
  31. }
  32. subprojects {
  33. project.evaluationDependsOn(':app')
  34. }
  35. tasks.register("clean", Delete) {
  36. delete rootProject.buildDir
  37. }