build.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. buildscript {
  2. ext.kotlin_version = '1.8.0'
  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. // maven { url 'https://maven.aliyun.com/repository/jcenter' }
  9. // maven { url 'https://maven.aliyun.com/nexus/content/groups/public'}
  10. google()
  11. mavenCentral()
  12. maven { url 'https://jitpack.io' }
  13. }
  14. dependencies {
  15. classpath 'com.android.tools.build:gradle:7.1.2'
  16. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  17. }
  18. }
  19. allprojects {
  20. repositories {
  21. // maven { url 'https://maven.aliyun.com/repository/public' }
  22. // maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
  23. // maven { url 'https://maven.aliyun.com/repository/central' }
  24. // maven { url 'https://maven.aliyun.com/repository/google' }
  25. // maven { url 'https://maven.aliyun.com/repository/jcenter' }
  26. // maven { url 'https://maven.aliyun.com/nexus/content/groups/public'}
  27. google()
  28. mavenCentral()
  29. maven { url 'https://jitpack.io' }
  30. }
  31. }
  32. rootProject.buildDir = '../build'
  33. subprojects {
  34. project.buildDir = "${rootProject.buildDir}/${project.name}"
  35. }
  36. subprojects {
  37. project.evaluationDependsOn(':app')
  38. }
  39. tasks.register("clean", Delete) {
  40. delete rootProject.buildDir
  41. }