build.gradle 1.0 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.3.20'
  4. repositories {
  5. google()
  6. mavenCentral()
  7. jcenter()
  8. maven { url 'https://repo1.maven.org/maven2/' }
  9. maven { url "https://maven.aliyun.com/repository/public" }
  10. }
  11. dependencies {
  12. classpath "com.android.tools.build:gradle:4.0.0"
  13. // classpath 'com.android.tools.build:gradle:3.6.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. google()
  22. jcenter()
  23. mavenCentral()
  24. maven {
  25. url "https://jitpack.io"
  26. }
  27. maven { url 'https://repo1.maven.org/maven2/' }
  28. maven { url "https://maven.aliyun.com/repository/public" }
  29. }
  30. }
  31. task clean(type: Delete) {
  32. delete rootProject.buildDir
  33. }