build.gradle 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. ext.kotlin_version = '1.6.10'
  4. repositories {
  5. //原仓库
  6. google()
  7. mavenCentral()
  8. maven { url 'https://plugins.gradle.org/m2/' }
  9. //镜像仓库,无法连接源仓库自行启用镜像仓库,不要提交修改
  10. //maven { url 'https://maven.aliyun.com/repository/google' }
  11. //maven { url 'https://maven.aliyun.com/repository/public' }
  12. //maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
  13. }
  14. dependencies {
  15. classpath 'com.android.tools.build:gradle:7.1.0'
  16. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  17. classpath 'de.timfreiheit.resourceplaceholders:placeholders:0.4'
  18. classpath 'de.undercouch:gradle-download-task:4.1.2'
  19. }
  20. }
  21. allprojects {
  22. repositories {
  23. //原仓库
  24. google()
  25. mavenCentral()
  26. maven { url 'https://jitpack.io' }
  27. //镜像仓库,无法连接源仓库自行启用镜像仓库,不要提交修改
  28. //maven { url 'https://maven.aliyun.com/repository/google' }
  29. //maven { url 'https://maven.aliyun.com/repository/public' }
  30. }
  31. }
  32. task clean(type: Delete) {
  33. delete rootProject.buildDir
  34. }