build.gradle 1.0 KB

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