build.gradle 1005 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. buildscript {
  2. ext.kotlin_version = '1.3.50'
  3. repositories {
  4. // google()
  5. // jcenter()
  6. maven { url 'https://maven.aliyun.com/repository/google' }
  7. maven { url 'https://maven.aliyun.com/repository/jcenter' }
  8. maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
  9. }
  10. dependencies {
  11. classpath 'com.android.tools.build:gradle:3.5.0'
  12. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72"
  13. }
  14. }
  15. allprojects {
  16. repositories {
  17. // google()
  18. // jcenter()
  19. maven { url 'https://maven.aliyun.com/repository/google' }
  20. maven { url 'https://maven.aliyun.com/repository/jcenter' }
  21. maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
  22. }
  23. }
  24. rootProject.buildDir = '../build'
  25. subprojects {
  26. project.buildDir = "${rootProject.buildDir}/${project.name}"
  27. }
  28. subprojects {
  29. project.evaluationDependsOn(':app')
  30. }
  31. task clean(type: Delete) {
  32. delete rootProject.buildDir
  33. }