build.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. apply from: "config.gradle"
  2. buildscript {
  3. repositories {
  4. google()
  5. mavenCentral()
  6. maven { url 'https://jitpack.io' }
  7. maven {url "https://maven.aliyun.com/nexus/content/repositories/releases"}
  8. maven { url 'https://repo1.maven.org/maven2/'}
  9. maven {url 'https://developer.huawei.com/repo/'}
  10. //微博
  11. // maven { url "https://dl.bintray.com/thelasterstar/maven/" }
  12. // maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  13. // maven { url 'https://maven.aliyun.com/repository/public/' }
  14. // maven { url 'https://maven.aliyun.com/repository/google/' }
  15. maven { url 'https://maven.aliyun.com/repository/jcenter/' }
  16. // maven { url 'https://maven.aliyun.com/repository/central/' }
  17. }
  18. dependencies {
  19. classpath 'com.android.tools.build:gradle:7.1.2'
  20. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10"
  21. classpath 'com.huawei.agconnect:agcp:1.6.0.300'
  22. }
  23. }
  24. allprojects {
  25. repositories {
  26. google()
  27. mavenCentral()
  28. maven { url 'https://jitpack.io' }
  29. maven {
  30. url "https://maven.aliyun.com/nexus/content/repositories/releases"
  31. }
  32. maven { url 'https://maven.aliyun.com/repository/jcenter/' }
  33. maven { url 'https://repo1.maven.org/maven2/'}
  34. maven {url 'https://developer.huawei.com/repo/'}
  35. //微博
  36. // maven { url "https://dl.bintray.com/thelasterstar/maven/" }
  37. }
  38. configurations.all {
  39. resolutionStrategy {
  40. force 'org.xerial:sqlite-jdbc:3.34.0'
  41. }
  42. }
  43. }
  44. task clean(type: Delete) {
  45. delete rootProject.buildDir
  46. }