build.gradle 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. apply from: "config.gradle"
  3. buildscript {
  4. ext {
  5. kotlin_version = '1.6.0'
  6. }
  7. repositories {
  8. google()
  9. mavenCentral()
  10. jcenter()
  11. maven { url 'https://maven.aliyun.com/repository/public' }
  12. maven { url 'https://jitpack.io' }
  13. }
  14. allprojects {
  15. repositories {
  16. google()
  17. mavenCentral()
  18. jcenter()
  19. maven { url 'https://maven.aliyun.com/repository/public' }
  20. maven { url 'https://jitpack.io' }
  21. }
  22. }
  23. dependencies {
  24. classpath 'com.android.tools.build:gradle:7.0.2'
  25. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  26. // NOTE: Do not place your application dependencies here; they belong
  27. // in the individual module build.gradle files
  28. }
  29. }
  30. allprojects{
  31. repositories {
  32. google()
  33. mavenCentral()
  34. jcenter()
  35. maven {
  36. allowInsecureProtocol = true
  37. url 'https://maven.aliyun.com/repository/public'
  38. }
  39. maven {
  40. allowInsecureProtocol = true
  41. url 'https://jitpack.io'
  42. }
  43. }
  44. }
  45. task clean(type: Delete) {
  46. delete rootProject.buildDir
  47. }