12345678910111213141516171819202122232425262728 |
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
- buildscript {
- apply from: './versions.gradle'
- addRepos(repositories) //增加代码仓库
- repositories {
- google()
- mavenCentral()
- maven { url "https://jitpack.io" }
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:4.2.1'
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
- classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
- classpath 'com.github.xuexiangjys.XAOP:xaop-plugin:1.1.0'
- classpath 'com.chenenyu:img-optimizer:1.2.0' // 图片压缩
- }
- }
- apply plugin: 'com.github.dcendents.android-maven'
- allprojects {
- repositories {
- google()
- mavenCentral()
- maven { url 'https://jitpack.io' }
- addRepos(repositories)
- }
- }
|