build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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.21'
  4. repositories {
  5. google()
  6. jcenter()
  7. maven{ url 'https://maven.aliyun.com/repository/google' }
  8. maven{ url 'https://maven.aliyun.com/repository/jcenter' }
  9. maven{ url 'https://maven.aliyun.com/repository/public' }
  10. maven { url 'http://download.flutter.io' }
  11. maven { url "https://oss.sonatype.org/content/groups/public" }
  12. maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
  13. maven { url 'http://developer.huawei.com/repo/' }
  14. }
  15. dependencies {
  16. classpath 'com.android.tools.build:gradle:4.2.1'
  17. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  18. // NOTE: Do not place your application dependencies here; they belong
  19. // in the individual module build.gradle files
  20. }
  21. }
  22. allprojects {
  23. repositories {
  24. maven{ url 'https://maven.aliyun.com/repository/google' }
  25. maven{ url 'https://maven.aliyun.com/repository/jcenter' }
  26. maven{ url 'https://maven.aliyun.com/repository/public' }
  27. maven { url 'http://download.flutter.io' }
  28. maven { url "https://oss.sonatype.org/content/groups/public" }
  29. maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
  30. maven { url 'http://developer.huawei.com/repo/' }
  31. google()
  32. jcenter()
  33. }
  34. }
  35. task clean(type: Delete) {
  36. delete rootProject.buildDir
  37. }