build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. buildscript {
  2. ext.kotlin_version = '1.6.0'
  3. repositories {
  4. // maven { url 'https://maven.aliyun.com/repository/public' }
  5. // maven{ url 'https://maven.aliyun.com/repository/google'}
  6. // maven{ url 'https://maven.aliyun.com/repository/central'}
  7. jcenter()
  8. google()
  9. mavenCentral()
  10. }
  11. dependencies {
  12. classpath 'com.android.tools.build:gradle:4.1.3'
  13. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  14. }
  15. }
  16. allprojects {
  17. repositories {
  18. // maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  19. // maven{ url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
  20. // maven { url 'https://maven.aliyun.com/repository/public' }
  21. // maven{ url 'https://maven.aliyun.com/repository/google'}
  22. // maven{ url 'https://maven.aliyun.com/repository/central'}
  23. jcenter()
  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. task clean(type: Delete) {
  36. delete rootProject.buildDir
  37. }