build.gradle 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
  5. // 配置HMS Core SDK的Maven仓地址。
  6. maven {url 'https://developer.huawei.com/repo/'}
  7. maven{ url 'https://maven.aliyun.com/repository/google'} //修改
  8. maven{ url 'https://maven.aliyun.com/repository/gradle-plugin'} //修改
  9. maven{ url 'https://maven.aliyun.com/repository/public'} //修改
  10. maven{ url 'https://maven.aliyun.com/repository/jcenter'} //修改
  11. maven { url "https://jitpack.io" }
  12. jcenter()
  13. google()
  14. mavenCentral()
  15. gradlePluginPortal()
  16. }
  17. apply from: 'config/config.gradle'
  18. ext {
  19. env.kotlin_version = '1.5.10'
  20. }
  21. dependencies {
  22. classpath "com.android.tools.build:gradle:4.1.2"
  23. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${env.kotlin_version}"
  24. // NOTE: Do not place your application dependencies here; they belong
  25. }
  26. }
  27. allprojects {
  28. repositories {
  29. google()
  30. mavenCentral()
  31. jcenter() // Warning: this repository is going to shut down soon
  32. maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
  33. // 配置HMS Core SDK的Maven仓地址。
  34. maven {url 'https://developer.huawei.com/repo/'}
  35. maven { url "https://gitee.com/AbnerAndroid/almighty/raw/master" }
  36. maven { url 'https://dl.bintray.com/wangjinya/maven' }
  37. maven{ url 'https://maven.aliyun.com/repository/google'} //修改
  38. maven{ url 'https://maven.aliyun.com/repository/gradle-plugin'} //修改
  39. maven{ url 'https://maven.aliyun.com/repository/public'} //修改
  40. maven{ url 'https://maven.aliyun.com/repository/jcenter'} //修改
  41. maven { url "https://jitpack.io" }
  42. }
  43. apply plugin: 'idea'
  44. buildDir = new File(rootDir, "gradle-build/${path.replaceAll(':', '/')}")
  45. }
  46. task clean(type: Delete) {
  47. delete rootProject.buildDir
  48. }