build.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. buildscript {
  2. ext.kotlin_version = '1.3.50'
  3. repositories {
  4. maven { url 'http://mirrors.cloud.tencent.com/nexus/repository/maven-public/' }
  5. maven { url 'https://maven.aliyun.com/repository/google' }
  6. maven { url 'https://maven.aliyun.com/repository/jcenter' }
  7. maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
  8. google()
  9. jcenter()
  10. }
  11. dependencies {
  12. classpath 'com.android.tools.build:gradle:3.5.0'
  13. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  14. }
  15. }
  16. allprojects {
  17. repositories {
  18. maven { url 'http://mirrors.cloud.tencent.com/nexus/repository/maven-public/' }
  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. google()
  23. jcenter()
  24. }
  25. gradle.projectsEvaluated {
  26. tasks.withType(JavaCompile) {
  27. options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
  28. }
  29. }
  30. }
  31. rootProject.buildDir = '../build'
  32. subprojects {
  33. project.buildDir = "${rootProject.buildDir}/${project.name}"
  34. }
  35. subprojects {
  36. project.evaluationDependsOn(':app')
  37. }
  38. task clean(type: Delete) {
  39. delete rootProject.buildDir
  40. }