build.gradle 718 B

123456789101112131415161718192021222324252627282930
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. // 导入通用的 Maven 库配置
  4. apply from: 'maven.gradle'
  5. repositories {
  6. google()
  7. jcenter()
  8. addCommonMaven(repositories)
  9. }
  10. dependencies {
  11. classpath "com.android.tools.build:gradle:4.1.0"
  12. // NOTE: Do not place your application dependencies here; they belong
  13. // in the individual module build.gradle files
  14. }
  15. }
  16. allprojects {
  17. repositories {
  18. addCommonMaven(repositories)
  19. google()
  20. jcenter()
  21. maven { url 'https://jitpack.io' }
  22. }
  23. }
  24. task clean(type: Delete) {
  25. delete rootProject.buildDir
  26. }