build.gradle 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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. maven { url 'https://maven.aliyun.com/repository/google'}
  15. maven { url 'https://maven.aliyun.com/repository/jcenter' }
  16. maven { url 'https://maven.aliyun.com/nexus/content/groups/public'}
  17. maven { url 'https://maven.aliyun.com/repository/central' }
  18. maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
  19. }
  20. }
  21. rootProject.buildDir = '../build'
  22. subprojects {
  23. project.buildDir = "${rootProject.buildDir}/${project.name}"
  24. }
  25. subprojects {
  26. project.evaluationDependsOn(':app')
  27. }
  28. tasks.register("clean", Delete) {
  29. delete rootProject.buildDir
  30. }