build.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. buildscript {
  2. repositories {
  3. google()
  4. mavenCentral()
  5. flatDir { dirs 'app/libs' }
  6. }
  7. dependencies {
  8. classpath 'com.android.tools.build:gradle:4.1.3'
  9. classpath 'org.owasp:dependency-check-gradle:6.1.6'
  10. // Huawei agconnect plugin
  11. classpath 'com.huawei.agconnect:agcp-1.4.2.300'
  12. classpath 'com.huawei.agconnect:agconnect-crash-symbol-lib-1.4.2.300'
  13. classpath 'com.huawei.agconnect:agconnect-core-1.4.0.300@aar'
  14. // NOTE: Do not place your application dependencies here; they belong
  15. // in the individual module build.gradle files
  16. }
  17. }
  18. allprojects {
  19. repositories {
  20. google()
  21. mavenCentral()
  22. jcenter()
  23. flatDir { dirs 'libs' }
  24. // Huawei
  25. exclusiveContent {
  26. forRepository {
  27. maven { url 'https://developer.huawei.com/repo/' }
  28. }
  29. filter {
  30. // Only matching dependencies will be installed from this repository.
  31. includeGroup "com.huawei.hms"
  32. includeGroup "com.huawei.android.hms"
  33. includeGroup "com.huawei.hmf"
  34. }
  35. }
  36. }
  37. // OWASP dependency-check-gradle plugin
  38. apply plugin: 'org.owasp.dependencycheck'
  39. dependencyCheck {
  40. skipConfigurations += 'lintClassPath'
  41. suppressionFile 'dependencyCheckSuppressions.xml'
  42. // Fail dependency check if any dependency has a CVE with a score of 3+
  43. failBuildOnCVSS 3
  44. }
  45. }
  46. wrapper {
  47. distributionType = Wrapper.DistributionType.ALL
  48. }