build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. ext.kotlin_version = "1.5.0"
  4. repositories {
  5. maven{ url 'https://maven.aliyun.com/repository/google'}
  6. maven{ url 'https://maven.aliyun.com/repository/central'}
  7. maven{ url 'https://maven.aliyun.com/repository/public'}
  8. google()
  9. mavenCentral()
  10. jcenter()
  11. }
  12. dependencies {
  13. classpath "com.android.tools.build:gradle:4.2.1"
  14. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  15. // NOTE: Do not place your application dependencies here; they belong
  16. // in the individual module build.gradle files
  17. }
  18. }
  19. allprojects {
  20. repositories {
  21. maven{ url 'https://maven.aliyun.com/repository/google'}
  22. maven{ url 'https://maven.aliyun.com/repository/central'}
  23. maven{ url 'https://maven.aliyun.com/repository/public'}
  24. google()
  25. mavenCentral()
  26. jcenter() // Warning: this repository is going to shut down soon
  27. }
  28. }
  29. task clean(type: Delete) {
  30. delete rootProject.buildDir
  31. }