build.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. //阿里
  5. maven { url 'https://maven.aliyun.com/repository/google' }// google()
  6. maven { url 'https://maven.aliyun.com/repository/jcenter' }// jcenter()
  7. maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }// mavenCentral()
  8. maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
  9. //国外
  10. maven { url 'https://jitpack.io' }//github
  11. //
  12. maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
  13. }
  14. dependencies {
  15. classpath "com.android.tools.build:gradle:4.1.3"
  16. classpath 'io.github.rockerhieu:versionberg:1.0.2'
  17. classpath 'com.blankj:bus-gradle-plugin:latest.release'
  18. }
  19. }
  20. allprojects {
  21. repositories {
  22. maven { url 'https://maven.aliyun.com/repository/google' }// google()
  23. maven { url 'https://maven.aliyun.com/repository/jcenter' }// jcenter()
  24. maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }// mavenCentral()
  25. maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
  26. //国外
  27. maven { url 'https://jitpack.io' }//github
  28. //
  29. maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
  30. }
  31. }