maven.gradle 714 B

12345678910111213141516
  1. static def addCommonMaven(RepositoryHandler handler) {
  2. // 阿里云云效仓库:https://maven.aliyun.com/mvn/guide
  3. handler.maven { url 'https://maven.aliyun.com/repository/public' }
  4. handler.maven { url 'https://maven.aliyun.com/repository/google' }
  5. // 华为开源镜像:https://mirrors.huaweicloud.com
  6. handler.maven { url 'https://repo.huaweicloud.com/repository/maven' }
  7. // JitPack 远程仓库:https://jitpack.io
  8. handler.maven { url 'https://jitpack.io' }
  9. // MavenCentral 远程仓库:https://mvnrepository.com
  10. handler.mavenCentral()
  11. handler.google()
  12. // noinspection JcenterRepositoryObsolete
  13. handler.jcenter()
  14. }
  15. ext.addCommonMaven = this.&addCommonMaven