build.gradle 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. maven{url 'https://maven.aliyun.com/repository/public'}
  5. maven { url "https://jitpack.io" }
  6. google()
  7. jcenter()
  8. }
  9. dependencies {
  10. classpath "com.android.tools.build:gradle:4.0.0"
  11. // NOTE: Do not place your application dependencies here; they belong
  12. // in the individual module build.gradle files
  13. def nav_version = "2.3.1"
  14. classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
  15. }
  16. }
  17. allprojects {
  18. repositories {
  19. flatDir {
  20. dirs 'libs'
  21. }
  22. maven{
  23. url 'https://maven.aliyun.com/repository/public'
  24. }
  25. mavenCentral()
  26. google()
  27. jcenter()
  28. maven { url 'https://jitpack.io' }
  29. // maven {
  30. // url 'https://maven.google.com/'
  31. // name 'Google'
  32. // }
  33. }
  34. }
  35. //task clean(type: Delete) {
  36. // delete rootProject.buildDir
  37. //}