build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. // ext.kotlin_version = '1.4.30-M1'
  4. repositories {
  5. google()
  6. jcenter()
  7. mavenCentral()
  8. maven {url 'https://developer.huawei.com/repo/'}
  9. }
  10. dependencies {
  11. classpath 'com.android.tools.build:gradle:8.7.3'
  12. classpath 'com.huawei.agconnect:agcp:1.8.0.300'
  13. // classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  14. // NOTE: Do not place your application dependencies here; they belong
  15. // in the individual module build.gradle files
  16. classpath 'com.google.gms:google-services:4.3.15'
  17. }
  18. }
  19. allprojects {
  20. repositories {
  21. google()
  22. jcenter()
  23. maven {
  24. url "https://developer.huawei.com/repo/"
  25. }
  26. maven { url 'https://jitpack.io' }
  27. maven { url 'https://dl.bintray.com/jenly/maven' }
  28. }
  29. configurations {
  30. all {
  31. resolutionStrategy {
  32. //force "android.arch.lifecycle:runtime:1.1.1"
  33. }
  34. }
  35. }
  36. }
  37. task clean(type: Delete) {
  38. delete rootProject.buildDir
  39. }