build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. buildscript {
  2. ext.kotlin_version = '1.6.10'
  3. repositories {
  4. maven { url 'https://maven.aliyun.com/repository/public' }//jcenter
  5. maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }//gradle-plugin
  6. maven { url 'https://maven.aliyun.com/repository/central' }//central
  7. maven { url 'https://maven.aliyun.com/repository/google' }//google
  8. google()
  9. mavenCentral()
  10. maven { url 'https://jitpack.io' }
  11. }
  12. dependencies {
  13. classpath 'com.android.tools.build:gradle:7.1.2'
  14. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  15. }
  16. }
  17. allprojects {
  18. repositories {
  19. maven { url 'https://maven.aliyun.com/repository/public' }
  20. maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
  21. maven { url 'https://maven.aliyun.com/repository/central' }
  22. maven { url 'https://maven.aliyun.com/repository/google' }
  23. google()
  24. mavenCentral()
  25. maven { url 'https://jitpack.io' }
  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. }