build.gradle 937 B

12345678910111213141516171819202122232425262728
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. apply from: './versions.gradle'
  4. addRepos(repositories) //增加代码仓库
  5. repositories {
  6. google()
  7. mavenCentral()
  8. maven { url "https://jitpack.io" }
  9. }
  10. dependencies {
  11. classpath 'com.android.tools.build:gradle:4.2.1'
  12. // NOTE: Do not place your application dependencies here; they belong
  13. // in the individual module build.gradle files
  14. classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
  15. classpath 'com.github.xuexiangjys.XAOP:xaop-plugin:1.1.0'
  16. classpath 'com.chenenyu:img-optimizer:1.2.0' // 图片压缩
  17. }
  18. }
  19. apply plugin: 'com.github.dcendents.android-maven'
  20. allprojects {
  21. repositories {
  22. google()
  23. mavenCentral()
  24. maven { url 'https://jitpack.io' }
  25. addRepos(repositories)
  26. }
  27. }