build.gradle 1008 B

12345678910111213141516171819202122232425262728293031323334353637
  1. buildscript {
  2. ext.kotlin_version = '1.3.72'
  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:4.1.0'
  12. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  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. }