build.gradle 747 B

1234567891011121314151617181920212223242526272829
  1. allprojects {
  2. gradle.projectsEvaluated {
  3. tasks.withType(JavaCompile) {
  4. options.compilerArgs << "-Xlint:unchecked"
  5. }
  6. }
  7. repositories {
  8. // google()
  9. // mavenCentral()
  10. maven { url 'https://maven.aliyun.com/repository/central/' }
  11. maven { url 'https://maven.aliyun.com/repository/public/' }
  12. maven { url 'https://maven.aliyun.com/repository/google/' }
  13. maven { url 'https://maven.aliyun.com/repository/gradle-plugin/' }
  14. }
  15. }
  16. rootProject.buildDir = '../build'
  17. subprojects {
  18. project.buildDir = "${rootProject.buildDir}/${project.name}"
  19. }
  20. subprojects {
  21. project.evaluationDependsOn(':app')
  22. }
  23. tasks.register("clean", Delete) {
  24. delete rootProject.buildDir
  25. }